Skip to content

Instantly share code, notes, and snippets.

@krnese
Created April 12, 2022 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krnese/02574c200237da32c87be3d65f7ada30 to your computer and use it in GitHub Desktop.
Save krnese/02574c200237da32c87be3d65f7ada30 to your computer and use it in GitHub Desktop.
ANM
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"managementGroupId": {
"type": "string",
"defaultValue": "/providers/Microsoft.Management/managementGroups/paris"
},
"location": {
"type": "string",
"defaultValue": "westeurope"
}
},
"variables": {
"avnmName": "[concat('avnm-', deployment().name)]"
},
"resources": [
{
"type": "Microsoft.Network/networkManagers",
"name": "[variables('avnmName')]",
"apiVersion": "2021-05-01-preview",
"location": "[parameters('location')]",
"properties": {
"displayName": "AVNM",
"description": "test",
"networkManagerScopeAccesses": [
"Connectivity",
"SecurityAdmin"
],
"networkManagerScopes": {
"managementGroups": [
"[parameters('managementGroupId')]"
],
"subscriptions": []
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment