Skip to content

A module used to deploy AVNM (Azure Virtual Network Manager) πŸ›œπŸ‘©β€πŸ’Ό

License

Notifications You must be signed in to change notification settings

cyber-scot/terraform-azurerm-virtual-network-manager

Repository files navigation

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
}

Requirements

No requirements.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_network_manager.avnm resource
azurerm_network_manager_network_group.groups resource

Inputs

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

Outputs

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.

About

A module used to deploy AVNM (Azure Virtual Network Manager) πŸ›œπŸ‘©β€πŸ’Ό

Resources

License

Stars

Watchers

Forks

Packages

No packages published