-
Notifications
You must be signed in to change notification settings - Fork 987
/
Copy pathemptySubscription.json
39 lines (39 loc) · 1.5 KB
/
emptySubscription.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"subscriptionAliasName": {
"type": "string",
"metadata": {
"description": "Provide a name for the alias. This name will also be the display name of the subscription."
}
},
"billingAccountId": {
"type": "string",
"metadata": {
"description": "Provide the full resourceId of the MCA or the enrollment account id used for subscription creation."
}
},
"targetManagementGroup": {
"type": "string",
"metadata": {
"description": "Provide the resourceId of the target management group to place the subscription."
}
}
},
"resources": [
{
"scope": "/", // routing the request to tenant root
"name": "[parameters('subscriptionAliasName')]",
"type": "Microsoft.Subscription/aliases",
"apiVersion": "2020-09-01",
"properties": {
"workLoad": "Production",
"displayName": "[parameters('subscriptionAliasName')]",
"billingScope": "[parameters('billingAccountId')]",
"managementGroupId": "[tenantResourceId('Microsoft.Management/managementGroups/', parameters('targetManagementGroup'))]"
}
}
],
"outputs": {}
}