You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* {AzureSubscription} fixesAzure#20812 fix the workload parameter
fixesAzure#20812
While we run the PS cmdlet `New-AzSubscriptionAlias` it fails with the error:
New-AzSubscriptionAlias -AliasName MyTestAlias -BillingScope '/providers/Microsoft.Billing/billingAccounts/XXXXXX/enrollmentAccounts/XXXXXX' -SubscriptionName MysSubscription
New-AzSubscriptionAlias: Operation returned an invalid status code 'BadRequest'
Debug output:
{
"error": {
"code": "InvalidWorkLoad",
"message": "Invalid WorkLoad provided, Only Production or DevTest are allowed"
},
"code": "InvalidWorkLoad",
"message": "Invalid WorkLoad provided, Only Production or DevTest are allowed"
}
This PR makes the workload parameter mandatory to avoid the above error.
* Update ChangeLog.md
* Update src/Subscription/Subscription/ChangeLog.md
Co-authored-by: Beisi Zhou <[email protected]>
* Updating the help docs for New-AzSubscriptionAlias
* Update src/Subscription/Subscription/ChangeLog.md
---------
Co-authored-by: Beisi Zhou <[email protected]>
0 commit comments