diff --git a/template.json b/template.json index 65c8d7c..54d8382 100644 --- a/template.json +++ b/template.json @@ -59,7 +59,7 @@ "location": "[resourceGroup().location]", "resourceGroupName": "[resourceGroup().name]", "resourceGroupId": "[resourceGroup().id]", - "roleAssignmentId": "[guid(subscription().subscriptionId)]", + "roleAssignmentId": "[guid(uniqueString( resourceGroup().id, deployment().name ))]", "subscriptionId": "[split(subscription().id, '/')[2]]", "tenantId": "[subscription().tenantId]", "contributor": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', 'b24988ac-6180-42a0-ab88-20f7382dd24c')]"