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.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_network_manager.avnm | resource |
azurerm_network_manager_network_group.groups | resource |
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({ |
n/a | yes |
scope_accesses | A list of configuration types | list(string) |
[ |
no |
tags | A map of tags to add to all resources. | map(string) |
n/a | yes |
Name | Description |
---|---|
network_group_ids | A map of network group names to their respective IDs. |
network_group_names | The list of network group names. |
network_manager_id | The ID of the Azure Network Manager. |
network_manager_name | The name of the Azure Network Manager. |
network_manager_scope | The scope of the Azure Network Manager. |
network_manager_tags | The tags of the Azure Network Manager. |