resource "azurerm_network_manager" "avnm" {
name = var.name
location = var.location
resource_group_name = var.rg_name
tags = var.tags
description = var.description
dynamic "scope" {
for_each = var.scope != null ? var.scope : []
content {
management_group_ids = scope.value.management_group_ids
subscription_ids = scope.value.subscription_ids
}
}
scope_accesses = var.scope_accesses
}
resource "azurerm_network_manager_network_group" "groups" {
for_each = toset(var.network_groups)
name = each.value
network_manager_id = azurerm_network_manager.avnm.id
}
No requirements.
No modules.
| Name |
Description |
Type |
Default |
Required |
| description |
The description attached to AVNM |
string |
null |
no |
| location |
The location where resources will be created. |
string |
n/a |
yes |
| name |
The name of the AVNM instance |
string |
n/a |
yes |
| network_groups |
A set of network groups to be made inside AVNM |
set(string) |
[] |
no |
| rg_name |
The name of the resource group. |
string |
n/a |
yes |
| scope |
The scope block in to which AVNM is deployed |
list(object({ management_group_ids = optional(list(string)) subscription_ids = optional(list(string)) })) |
n/a |
yes |
| scope_accesses |
A list of configuration types |
list(string) |
[ "Connectivity", "SecurityAdmin" ] |
no |
| tags |
A map of tags to add to all resources. |
map(string) |
n/a |
yes |