From b51fd422a9aa6ce754054ed000d5f837a29da801 Mon Sep 17 00:00:00 2001 From: Jack Harrington <38191888+CloudPlatformer@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:02:10 +0100 Subject: [PATCH] Set service bus role assignment GUID to be dependent on 3 properties to allow uniqueness (#313) --- templates/role-assignments/role-assignment-service-bus.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/role-assignments/role-assignment-service-bus.json b/templates/role-assignments/role-assignment-service-bus.json index 935e9cc6..cc790655 100644 --- a/templates/role-assignments/role-assignment-service-bus.json +++ b/templates/role-assignments/role-assignment-service-bus.json @@ -26,7 +26,7 @@ { "type": "Microsoft.ServiceBus/namespaces/providers/roleAssignments", "apiVersion": "2018-09-01-preview", - "name": "[concat(parameters('resourceName'), '/Microsoft.Authorization/', guid(uniqueString(parameters('principalId'))))]", + "name": "[concat(parameters('resourceName'), '/Microsoft.Authorization/', guid(uniqueString(parameters('principalId'), parameters('resourceName'), last(split(variables(parameters('assignmentType')), '/')))))]", "properties": { "roleDefinitionId": "[variables(parameters('assignmentType'))]", "principalId": "[parameters('principalId')]"