Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Nov 26, 2024
1 parent e6ec5af commit 7a26f64
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions eslzArm/subscriptionTemplates/avnmPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,44 @@
"resources": [
{
"type": "Microsoft.Authorization/policyDefinitions",
"apiVersion": "2021-06-01",
"name": "[uniqueString(resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', format('ng-{0}-dynamic', parameters('location'))))]",
"apiVersion": "2023-04-01",
"name": "[uniqueString(variables('networkGroupId'))]",
"properties": {
"description": "AVNM dynamic group membership Policy",
"displayName": "AVNM dynamic group membership Policy",
"mode": "Microsoft.Network.Data",
"policyRule": {
"if": {
"allof": [
{
"field": "type",
"equals": "Microsoft.Network/virtualNetworks"
},
{
"allOf": [
{
"value": "[resourceGroup().Name]",
"contains": "vnet"
}
]
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/virtualNetworks"
},
{
"allOf": [
{
"value": "[resourceGroup().Name]",
"contains": "vnet"
}
]
}
]
},
"then": {
"effect": "addToNetworkGroup",
"details": {
"networkGroupId": "[variables('networkGroupId')]"
}
]
},
"then": {
"effect": "addToNetworkGroup",
"details": {
"networkGroupId": "[variables('networkGroupId')]"
}
}
}
},
"metadata": {
"description": "This is a Policy definition for dyanamic group membership"
}
},
{
"type": "Microsoft.Authorization/policyAssignments",
"apiVersion": "2022-06-01",
"apiVersion": "2023-04-01",
"name": "[uniqueString(variables('networkGroupId'))]",
"properties": {
"description": "AVNM dynamic group membership Policy",
Expand Down

0 comments on commit 7a26f64

Please sign in to comment.