Skip to content

Commit

Permalink
Set service bus role assignment GUID to be dependent on 3 properties …
Browse files Browse the repository at this point in the history
…to allow uniqueness (#313)
  • Loading branch information
CloudPlatformer authored Mar 27, 2023
1 parent 23a26e4 commit b51fd42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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')]"
Expand Down

0 comments on commit b51fd42

Please sign in to comment.