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 c49661c commit b81f3f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eslzArm/prerequisites/deployPrerequisites.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"parameters": {
"location": {
"type": "string"
},
"eslzRootName": {
"type": "string"
}
},
"variables": {},
Expand All @@ -69,7 +72,7 @@
"apiVersion": "2022-04-01",
"name": "[guid(resourceGroup().id, format('uai-prereq-{0}', parameters('location')))]",
"properties": {
"roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'b24988ac-6180-42a0-ab88-20f7382dd24c')]",
"roleDefinitionId": "[managementGroupResourceId(parameters('eslzRootName'), 'Microsoft.Authorization/roleDefinitions', 'b24988ac-6180-42a0-ab88-20f7382dd24c')]",
"principalId": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-prereq-{0}', parameters('location'))), '2022-01-31-preview').principalId]",
"principalType": "ServicePrincipal"
},
Expand Down Expand Up @@ -154,7 +157,7 @@
)

#API call to register the Microsoft.Network provider against intermediate resource group for AVNM
Invoke-AzRestMethod -Method POST -Uri \"https://management.azure.com/providers/Microsoft.Management/managementGroups/$eslzRootName/providers/Microsoft.Network/register?api-version=2021-04-01\"
#Invoke-AzRestMethod -Method POST -Uri \"https://management.azure.com/providers/Microsoft.Management/managementGroups/$eslzRootName/providers/Microsoft.Network/register?api-version=2021-04-01\"

#Sleep for XX minutes to wait for Management Groups to load to cache before assignments
Start-Sleep -Duration (New-TimeSpan -Minutes 20)
Expand Down

0 comments on commit b81f3f1

Please sign in to comment.