Skip to content

Commit c4b5206

Browse files
Merge pull request #213385 from bandersmsft/create-subs-program-10032022
MCM - Update Programatically create for GA
2 parents cd42ec7 + 3ddb066 commit c4b5206

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

articles/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Using one of the following methods, you'll create a subscription alias name. We
174174
- Start with a letter and end with an alphanumeric character
175175
- Don't use periods
176176

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.
178178

179179
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.
180180

@@ -183,7 +183,7 @@ If you have multiple user roles in addition to the Account Owner role, then you
183183
Call the PUT API to create a subscription creation request/alias.
184184

185185
```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
187187
```
188188

189189
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.
219219
### Request
220220

221221
```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
223223
```
224224

225225
### Response
@@ -317,7 +317,7 @@ The following ARM template creates a subscription. For `billingScope`, provide t
317317
"scope": "/",
318318
"name": "[parameters('subscriptionAliasName')]",
319319
"type": "Microsoft.Subscription/aliases",
320-
"apiVersion": "2020-09-01",
320+
"apiVersion": "2021-10-01",
321321
"properties": {
322322
"workLoad": "Production",
323323
"displayName": "[parameters('subscriptionAliasName')]",
@@ -340,7 +340,7 @@ param subscriptionAliasName string
340340
@description('Provide the full resource ID of billing scope to use for subscription creation.')
341341
param billingScope string
342342
343-
resource subscriptionAlias 'Microsoft.Subscription/aliases@2020-09-01' = {
343+
resource subscriptionAlias 'Microsoft.Subscription/aliases@2021-10-01' = {
344344
scope: tenant()
345345
name: subscriptionAliasName
346346
properties: {

articles/cost-management-billing/manage/programmatically-create-subscription-microsoft-customer-agreement.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ The following example creates a subscription named *Dev Team subscription* for t
331331
### [REST](#tab/rest)
332332

333333
```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
335335
```
336336

337337
### Request body
@@ -366,7 +366,7 @@ You can do a GET on the same URL to get the status of the request.
366366
### Request
367367

368368
```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
370370
```
371371

372372
### Response
@@ -464,7 +464,7 @@ The following template creates a subscription. For `billingScope`, provide the i
464464
"scope": "/",
465465
"name": "[parameters('subscriptionAliasName')]",
466466
"type": "Microsoft.Subscription/aliases",
467-
"apiVersion": "2020-09-01",
467+
"apiVersion": "2021-10-01",
468468
"properties": {
469469
"workLoad": "Production",
470470
"displayName": "[parameters('subscriptionAliasName')]",
@@ -487,7 +487,7 @@ param subscriptionAliasName string
487487
@description('Provide the full resource ID of billing scope to use for subscription creation.')
488488
param billingScope string
489489
490-
resource subscriptionAlias 'Microsoft.Subscription/aliases@2020-09-01' = {
490+
resource subscriptionAlias 'Microsoft.Subscription/aliases@2021-10-01' = {
491491
scope: tenant()
492492
name: subscriptionAliasName
493493
properties: {

articles/cost-management-billing/manage/programmatically-create-subscription-microsoft-partner-agreement.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ The following example creates a subscription named *Dev Team subscription* for
273273
### [REST](#tab/rest)
274274

275275
```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
277277
```
278278

279279
### Request body
@@ -307,7 +307,7 @@ You can do a GET on the same URL to get the status of the request.
307307
### Request
308308

309309
```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
311311
```
312312

313313
### Response
@@ -411,7 +411,7 @@ The following ARM template creates a subscription. For `billingScope`, provide t
411411
"scope": "/",
412412
"name": "[parameters('subscriptionAliasName')]",
413413
"type": "Microsoft.Subscription/aliases",
414-
"apiVersion": "2020-09-01",
414+
"apiVersion": "2021-10-01",
415415
"properties": {
416416
"workLoad": "Production",
417417
"displayName": "[parameters('subscriptionAliasName')]",
@@ -434,7 +434,7 @@ param subscriptionAliasName string
434434
@description('Provide the full resource ID of billing scope to use for subscription creation.')
435435
param billingScope string
436436
437-
resource subscriptionAlias 'Microsoft.Subscription/aliases@2020-09-01' = {
437+
resource subscriptionAlias 'Microsoft.Subscription/aliases@2021-10-01' = {
438438
scope: tenant()
439439
name: subscriptionAliasName
440440
properties: {

0 commit comments

Comments
 (0)