Commit c21cc3f
* {AzureSubscription} fixes Azure#20812 fix the workload parameter
fixes Azure#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 <zhoubeisi@gmail.com>
* Updating the help docs for New-AzSubscriptionAlias
* Update src/Subscription/Subscription/ChangeLog.md
---------
Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>
1 parent 563a918 commit c21cc3f
File tree
3 files changed
+4
-3
lines changed- src/Subscription/Subscription
- Cmdlets
- help
3 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments