From ef3d9618cbaf85e25c5d6b4213dc78c1d0be92d3 Mon Sep 17 00:00:00 2001 From: Sacha Narinx Date: Tue, 10 Dec 2024 18:05:12 +0400 Subject: [PATCH] . --- eslzArm/subscriptionTemplates/avnmPolicy.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eslzArm/subscriptionTemplates/avnmPolicy.json b/eslzArm/subscriptionTemplates/avnmPolicy.json index 2110128f3..5202657a9 100644 --- a/eslzArm/subscriptionTemplates/avnmPolicy.json +++ b/eslzArm/subscriptionTemplates/avnmPolicy.json @@ -60,7 +60,7 @@ { "type": "Microsoft.Authorization/policyAssignments", "apiVersion": "2023-04-01", - "name": "[uniqueString(variables('networkGroupId'))]", + "name": "Configure-AVNM-dynamic-group-membership", "properties": { "description": "AVNM dynamic group membership Policy", "displayName": "AVNM dynamic group membership Policy", @@ -76,10 +76,10 @@ }, { "type": "Microsoft.Authorization/roleAssignments", - "apiVersion": "2019-04-01-preview", - "name": "role-AVNM-NetworkGroup", + "apiVersion": "2023-04-01", + "name": "[guid(concat(parameters('topLevelManagementGroupPrefix'), 'Configure-AVNM-dynamic-group-membership'))]", "dependsOn": [ - "[uniqueString(variables('networkGroupId'))]", + "Configure-AVNM-dynamic-group-membership", "[format('Microsoft.Authorization/policyDefinitions/{0}', 'AVNM-dynamic-group-membership')]" ], "properties": {