Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Dec 18, 2024
1 parent 6846f58 commit 5bc595a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
46 changes: 33 additions & 13 deletions eslzArm/subscriptionTemplates/avnmConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
"location": {
"value": "[parameters('location')]"
},
"locationSecondary": {
"value": "[parameters('locationSecondary')]"
},
"managementGroupScope": {
"value": "[parameters('managementGroupScope')]"
}
Expand All @@ -74,6 +77,9 @@
"location": {
"type": "string"
},
"locationSecondary": {
"type": "string"
},
"managementGroupScope": {
"type": "string"
}
Expand Down Expand Up @@ -104,32 +110,42 @@
{
"type": "Microsoft.Network/networkManagers/networkGroups",
"apiVersion": "2024-03-01",
"name": "[format('{0}/{1}', 'avnm', 'ng-static')]",
"name": "[format('{0}/{1}', 'avnm', 'avnm-ng-all')]",
"properties": {
"memberType": "VirtualNetwork",
"description": "Network Group - Static"
"description": "Network Group - All Landing Zone virtual networks"
},
"dependsOn": [
"[resourceId('Microsoft.Network/networkManagers', 'avnm')]"
],
"metadata": {
"description": "This is the static network group for the spoke VNETs, and hub when topology is mesh."
"description": "This is the dynamic network group for all ALZ VNETs."
}
},
{
"type": "Microsoft.Network/networkManagers/networkGroups",
"apiVersion": "2024-03-01",
"name": "[format('{0}/{1}', 'avnm', 'ng-dynamic')]",
"name": "[format('{0}/{1}', 'avnm', format('avnm-ng-{0}', parameters('location')))]",
"properties": {
"memberType": "VirtualNetwork",
"description": "Network Group - Dynamic"
"description": "[format('Network Group - Region - {0}', parameters('location'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Network/networkManagers', 'avnm')]"
],
"metadata": {
"description": "This is the dynamic network group for the spoke VNETs, and hub when topology is mesh."
}
]
},
{
"condition": "[not(empty(parameters('locationSecondary')))]",
"type": "Microsoft.Network/networkManagers/networkGroups",
"apiVersion": "2024-03-01",
"name": "[format('{0}/{1}', 'avnm', format('avnm-ng-{0}', parameters('locationSecondary')))]",
"properties": {
"memberType": "VirtualNetwork",
"description": "[format('Network Group - Region - {0}', parameters('locationSecondary'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Network/networkManagers', 'avnm')]"
]
},
{
"type": "Microsoft.Network/networkManagers/securityAdminConfigurations",
Expand All @@ -148,16 +164,20 @@
"name": "[format('{0}/{1}/{2}', 'avnm', 'sac-alz', 'rc-ALZ')]",
"dependsOn": [
"[resourceId('Microsoft.Network/networkManagers/securityAdminConfigurations', 'avnm', 'sac-alz')]",
"[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'ng-static')]",
"[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'ng-dynamic')]"
"[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'avnm-ng-all')]",
"[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', format('avnm-ng-{0}', parameters('location')))]",
"[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', format('avnm-ng-{0}', parameters('locationSecondary')))]"
],
"properties": {
"appliesToGroups": [
{
"networkGroupId": "[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'ng-static')]"
"networkGroupId": "[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'avnm-ng-all')]"
},
{
"networkGroupId": "[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', format('avnm-ng-{0}', parameters('location')))]"
},
{
"networkGroupId": "[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', 'ng-dynamic')]"
"networkGroupId": "[resourceId('Microsoft.Network/networkManagers/networkGroups', 'avnm', format('avnm-ng-{0}', parameters('locationSecondary')))]"
}

]
Expand Down
2 changes: 1 addition & 1 deletion eslzArm/subscriptionTemplates/avnmPolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"variables": {
"networkGroupId": "[resourceId(parameters('connectivitySubscriptionId'), 'rg-alz-avnm', 'Microsoft.Network/networkManagers/networkGroups', 'avnm', 'ng-dynamic')]"
"networkGroupId": "[resourceId(parameters('connectivitySubscriptionId'), 'rg-alz-avnm', 'Microsoft.Network/networkManagers/networkGroups', 'avnm', 'avnm-ng-all')]"
},
"resources": [
{
Expand Down

0 comments on commit 5bc595a

Please sign in to comment.