From 57d63e2195fdb2685478943eb8d9cb845c520b85 Mon Sep 17 00:00:00 2001 From: yairra Date: Sun, 1 Oct 2023 10:24:50 +0300 Subject: [PATCH] Fixed roleAssignment name --- .../templates/nestedtemplates/existing-nsg-RoleAssignment.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/templates/nestedtemplates/existing-nsg-RoleAssignment.json b/azure/templates/nestedtemplates/existing-nsg-RoleAssignment.json index 07530416..805af1bd 100755 --- a/azure/templates/nestedtemplates/existing-nsg-RoleAssignment.json +++ b/azure/templates/nestedtemplates/existing-nsg-RoleAssignment.json @@ -38,7 +38,7 @@ "type": "Microsoft.Authorization/roleAssignments", "apiVersion": "2022-04-01", "scope": "[concat('Microsoft.Network/networkSecurityGroups/', parameters('ExistingNSG').name)]", - "name": "[guid(resourceGroup().id, concat(parameters('vmName'), parameters('roleDefinitionId'), parameters('principalId2'), '2', '-nsg', parameters('index')))]", + "name": "[guid(resourceGroup().id, concat(parameters('vmName'), parameters('principalId1'), '1', '-nsg', parameters('index')))]", "properties": { "roleDefinitionId": "[parameters('roleDefinitionId')]", "principalId": "[parameters('principalId2')]"