4
4
"metadata" : {
5
5
"_generator" : {
6
6
"name" : " bicep" ,
7
- "version" : " 0.23.1.45101 " ,
8
- "templateHash" : " 1432163185374769317 "
7
+ "version" : " 0.29.47.4906 " ,
8
+ "templateHash" : " 18243599897785785680 "
9
9
}
10
10
},
11
11
"resources" : [
17
17
"properties" : {
18
18
"workload" : " DevTest" ,
19
19
"displayName" : " sub1" ,
20
- "billingScope" : " /billingAccounts/nn/enrollmentAccounts/nn"
20
+ "billingScope" : " /billingAccounts/nn/enrollmentAccounts/nn"
21
21
}
22
22
},
23
23
{
24
24
"type" : " Microsoft.Resources/deployments" ,
25
25
"apiVersion" : " 2022-09-01" ,
26
- "name" : " rbac " ,
26
+ "name" : " child " ,
27
27
"subscriptionId" : " 00000000-0000-0000-0000-000000000000" ,
28
28
"location" : " [deployment().location]" ,
29
29
"properties" : {
37
37
"metadata" : {
38
38
"_generator" : {
39
39
"name" : " bicep" ,
40
- "version" : " 0.23.1.45101 " ,
41
- "templateHash" : " 17477755083280448345 "
40
+ "version" : " 0.29.47.4906 " ,
41
+ "templateHash" : " 4248553621957476478 "
42
42
}
43
43
},
44
44
"resources" : [
56
56
]
57
57
}
58
58
}
59
+ },
60
+ {
61
+ "type" : " Microsoft.Resources/deployments" ,
62
+ "apiVersion" : " 2022-09-01" ,
63
+ "name" : " child2" ,
64
+ "location" : " [deployment().location]" ,
65
+ "properties" : {
66
+ "expressionEvaluationOptions" : {
67
+ "scope" : " inner"
68
+ },
69
+ "mode" : " Incremental" ,
70
+ "template" : {
71
+ "$schema" : " https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#" ,
72
+ "contentVersion" : " 1.0.0.0" ,
73
+ "metadata" : {
74
+ "_generator" : {
75
+ "name" : " bicep" ,
76
+ "version" : " 0.29.47.4906" ,
77
+ "templateHash" : " 16465737476591302057"
78
+ }
79
+ },
80
+ "resources" : [
81
+ {
82
+ "type" : " Microsoft.Subscription/aliases" ,
83
+ "apiVersion" : " 2021-10-01" ,
84
+ "scope" : " /" ,
85
+ "name" : " sub2" ,
86
+ "properties" : {
87
+ "workload" : " DevTest" ,
88
+ "displayName" : " sub2" ,
89
+ "billingScope" : " /billingAccounts/nn/enrollmentAccounts/nn"
90
+ }
91
+ }
92
+ ],
93
+ "outputs" : {
94
+ "subscriptionId" : {
95
+ "type" : " string" ,
96
+ "value" : " [reference(tenantResourceId('Microsoft.Subscription/aliases', 'sub2'), '2021-10-01').subscriptionId]"
97
+ }
98
+ }
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "type" : " Microsoft.Resources/deployments" ,
104
+ "apiVersion" : " 2022-09-01" ,
105
+ "name" : " child3" ,
106
+ "location" : " [deployment().location]" ,
107
+ "properties" : {
108
+ "expressionEvaluationOptions" : {
109
+ "scope" : " inner"
110
+ },
111
+ "mode" : " Incremental" ,
112
+ "parameters" : {
113
+ "subscriptionId" : {
114
+ "value" : " [reference(extensionResourceId(managementGroup().id, 'Microsoft.Resources/deployments', 'child2'), '2022-09-01').outputs.subscriptionId.value]"
115
+ }
116
+ },
117
+ "template" : {
118
+ "$schema" : " https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#" ,
119
+ "contentVersion" : " 1.0.0.0" ,
120
+ "metadata" : {
121
+ "_generator" : {
122
+ "name" : " bicep" ,
123
+ "version" : " 0.29.47.4906" ,
124
+ "templateHash" : " 18410252302990608843"
125
+ }
126
+ },
127
+ "parameters" : {
128
+ "subscriptionId" : {
129
+ "type" : " string"
130
+ }
131
+ },
132
+ "resources" : [
133
+ {
134
+ "type" : " Microsoft.Resources/deployments" ,
135
+ "apiVersion" : " 2022-09-01" ,
136
+ "name" : " child4" ,
137
+ "subscriptionId" : " [parameters('subscriptionId')]" ,
138
+ "location" : " [deployment().location]" ,
139
+ "properties" : {
140
+ "expressionEvaluationOptions" : {
141
+ "scope" : " inner"
142
+ },
143
+ "mode" : " Incremental" ,
144
+ "template" : {
145
+ "$schema" : " https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#" ,
146
+ "contentVersion" : " 1.0.0.0" ,
147
+ "metadata" : {
148
+ "_generator" : {
149
+ "name" : " bicep" ,
150
+ "version" : " 0.29.47.4906" ,
151
+ "templateHash" : " 5988084472097053332"
152
+ }
153
+ },
154
+ "resources" : [
155
+ {
156
+ "type" : " Microsoft.Authorization/roleAssignments" ,
157
+ "apiVersion" : " 2022-04-01" ,
158
+ "name" : " 48d15605-70a3-4676-bb6a-792f403786b5" ,
159
+ "properties" : {
160
+ "principalId" : " 48d15605-70a3-4676-bb6a-792f403786b5" ,
161
+ "roleDefinitionId" : " 48d15605-70a3-4676-bb6a-792f403786b5" ,
162
+ "principalType" : " ServicePrincipal" ,
163
+ "description" : " Test role assignment for checking scope and ID."
164
+ }
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ "dependsOn" : [
174
+ " [extensionResourceId(managementGroup().id, 'Microsoft.Resources/deployments', 'child2')]"
175
+ ]
59
176
}
60
177
]
61
178
}
0 commit comments