Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Dec 9, 2024
1 parent 76d2a07 commit 69c3a30
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions eslzArm/prerequisites/deployPrerequisites1.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"eslzRootName": {
"type": "string"
}
"location": {
"type": "string"
},
"eslzRootName": {
"type": "string"
}
},
"variables": {},
"resources": [
Expand All @@ -85,7 +85,7 @@
"name": "[format('uai-prereq-{0}', parameters('location'))]",
"location": "[parameters('location')]",
"metadata": {
"description": "This user assigned identity is used by the Deployment Script resource to interact with Azure resources."
"description": "This user assigned identity is used by the Deployment Script resource to interact with Azure resources."
}
},
{
Expand All @@ -94,15 +94,15 @@
"name": "[guid(resourceGroup().id, format('uai-prereq-{0}', parameters('location')))]",
"scope": "[format('/providers/Microsoft.Management/managementGroups/{0}', parameters('eslzRootName'))]",
"properties": {
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
"principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-prereq-{0}', parameters('location'))), '2023-07-31-preview').principalId]",
"principalType": "ServicePrincipal"
"roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
"principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-prereq-{0}', parameters('location'))), '2023-07-31-preview').principalId]",
"principalType": "ServicePrincipal"
},
"dependsOn": [
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-prereq-{0}', parameters('location')))]"
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-prereq-{0}', parameters('location')))]"
],
"metadata": {
"description": "This role assignment grants the user assigned identity the Contributor role on the resource group."
"description": "This role assignment grants the user assigned identity the Contributor role on the resource group."
}
}
],
Expand All @@ -115,8 +115,7 @@
}
},
"dependsOn": [
"[concat('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]",
"alz-prerequisites-createRG"
"[concat('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
]
},
{
Expand Down Expand Up @@ -144,15 +143,15 @@
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"eslzRootName":{
"type": "string"
},
"userAssignedIdentityId": {
"type": "string"
}
"location": {
"type": "string"
},
"eslzRootName":{
"type": "string"
},
"userAssignedIdentityId": {
"type": "string"
}
},
"resources": [
{
Expand Down Expand Up @@ -215,9 +214,8 @@
}
},
"dependsOn": [
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', parameters('managementSubscriptionId'), parameters('resourceGroupName')), 'Microsoft.Resources/deployments', 'alz-prerequisites-uai')]",
"[concat('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]",
"alz-prerequisites-createRG"
"[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', parameters('managementSubscriptionId'), parameters('resourceGroupName')), 'Microsoft.Resources/deployments', 'alz-prerequisites-uai')]",
"[concat('Microsoft.Resources/resourceGroups/', parameters('resourceGroupName'))]"
]
}
]
Expand Down

0 comments on commit 69c3a30

Please sign in to comment.