Skip to content

Commit

Permalink
Stripping all UAI bits
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Oct 17, 2024
1 parent a762b52 commit acfb38c
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions eslzArm/subscriptionTemplates/avnmConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@
"value": "[parameters('connectivitySubscriptionId')]"
}
},
"variables": {
"rgName": {
"value": "[variables('rgName')]"
}
},
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
Expand All @@ -109,37 +104,7 @@
"type": "string"
}
},
"variables": {
"rgName": {
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"apiVersion": "2023-01-31",
"name": "[format('uai-{0}', parameters('location'))]",
"location": "[parameters('location')]",
"metadata": {
"description": "This user assigned identity is used by the Deployment Script resource to interact with Azure resources."
}
},
{
"type": "Microsoft.Authorization/roleAssignments",
"apiVersion": "2022-04-01",
"name": "[guid(resourceGroup().id, format('uai-{0}', parameters('location')))]",
"properties": {
"roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5d58bcaf-24a5-4b20-bdb6-eed9f69fbe4c')]",
"principalId": "[reference(resourceId(parameters('connectivitySubscriptionId'), variables('rgName'),'Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-{0}', parameters('location'))), '2023-01-31').principalId]",
"principalType": "ServicePrincipal"
},
"dependsOn": [
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', format('uai-{0}', parameters('location')))]"
],
"metadata": {
"description": "This role assignment grants the user assigned identity the Contributor role on the management group."
}
},
{
"type": "Microsoft.Network/networkManagers",
"apiVersion": "2022-09-01",
Expand Down

0 comments on commit acfb38c

Please sign in to comment.