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
Copy file name to clipboardExpand all lines: articles/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ Using one of the following methods, you'll create a subscription alias name. We
174
174
- Start with a letter and end with an alphanumeric character
175
175
- Don't use periods
176
176
177
-
An alias is used for simple substitution of a user-defined string instead of the subscription GUID. In other words, you can use it as a shortcut. You can learn more about alias at [Alias - Create](/rest/api/subscription/2020-09-01/alias/create). In the following examples, `sampleAlias` is created but you can use any string you like.
177
+
An alias is used for simple substitution of a user-defined string instead of the subscription GUID. In other words, you can use it as a shortcut. You can learn more about alias at [Alias - Create](/rest/api/subscription/2021-10-01/alias/create). In the following examples, `sampleAlias` is created but you can use any string you like.
178
178
179
179
If you have multiple user roles in addition to the Account Owner role, then you must retrieve the account ID from the Azure portal. Then you can use the ID to programmatically create subscriptions.
180
180
@@ -183,7 +183,7 @@ If you have multiple user roles in addition to the Account Owner role, then you
183
183
Call the PUT API to create a subscription creation request/alias.
184
184
185
185
```json
186
-
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
186
+
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
187
187
```
188
188
189
189
In the request body, provide as the `billingScope` the `id` from one of your `enrollmentAccounts`.
@@ -219,7 +219,7 @@ You can do a GET on the same URL to get the status of the request.
219
219
### Request
220
220
221
221
```json
222
-
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
222
+
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
223
223
```
224
224
225
225
### Response
@@ -317,7 +317,7 @@ The following ARM template creates a subscription. For `billingScope`, provide t
Copy file name to clipboardExpand all lines: articles/cost-management-billing/manage/programmatically-create-subscription-microsoft-customer-agreement.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,7 +331,7 @@ The following example creates a subscription named *Dev Team subscription* for t
331
331
### [REST](#tab/rest)
332
332
333
333
```json
334
-
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
334
+
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
335
335
```
336
336
337
337
### Request body
@@ -366,7 +366,7 @@ You can do a GET on the same URL to get the status of the request.
366
366
### Request
367
367
368
368
```json
369
-
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
369
+
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
370
370
```
371
371
372
372
### Response
@@ -464,7 +464,7 @@ The following template creates a subscription. For `billingScope`, provide the i
Copy file name to clipboardExpand all lines: articles/cost-management-billing/manage/programmatically-create-subscription-microsoft-partner-agreement.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,7 +273,7 @@ The following example creates a subscription named *Dev Team subscription* for
273
273
### [REST](#tab/rest)
274
274
275
275
```json
276
-
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
276
+
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
277
277
```
278
278
279
279
### Request body
@@ -307,7 +307,7 @@ You can do a GET on the same URL to get the status of the request.
307
307
### Request
308
308
309
309
```json
310
-
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2020-09-01
310
+
GET https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
311
311
```
312
312
313
313
### Response
@@ -411,7 +411,7 @@ The following ARM template creates a subscription. For `billingScope`, provide t
0 commit comments