avm-res-network-virtualnetwork
Azure/avm-res-network-virtualnetwork/azurerm
Terraform Azure Verified Resource Module for Virtual Network
Azure Virtual Network Module This module is used to manage Azure Virtual Networks, Subnets and Peerings, with optional IPAM (IP Address Management) support. This module is composite and includes sub modules that can be used independently for pre-existing virtual networks. These sub modules are: - subnet - The subnet module is used to manage subnets within a virtual network. - peering - The peering module is used to manage virtual network peerings. Features This module supports managing virtual networks and their associated subnets and peerings together or independently. The module supports: - Creating a new virtual network - Creating a new subnet - Creating a new virtual network peering - Associating DNS servers with a virtual network - Associating a DDOS protection plan with a virtual net
| Name | Type | Description | Default |
|---|---|---|---|
| location | string | (Optional) The location/region where the virtual network is created. Changing th | required |
| parent_id | string | (Optional) The ID of the resource group where the virtual network will be deploy | required |
| ipam_pools | list(object({ id | (Optional) Specifies the IPAM settings for requesting an address_space from an I | null |
| timeouts | object({ create = optional | Timeouts for the resource operations | {} |
| enable_vm_protection | bool | (Optional) Enable VM Protection for the virtual network. Defaults to false. | false |
| flow_timeout_in_minutes | number | (Optional) The flow timeout in minutes for the virtual network. Defaults to 4. | null |
| tags | map(string) | (Optional) Tags of the resource. | null |
| address_space | set(string) | (Optional) The address spaces applied to the virtual network. You can supply m | null |
| bgp_community | string | (Optional) The BGP community to send to the virtual network gateway. | null |
| extended_location | object({ name = string | (Optional) Specifies the extended location of the virtual network. - `name`: Th | null |
| name | string | (Optional) The name of the virtual network to create. If null, existing_virtual | null |
| role_assignments | map(object({ role_definiti | (Optional) A map of role assignments to create on the <RESOURCE>. The map key | {} |
| ddos_protection_plan | object({ id = string | Specifies an AzureNetwork DDoS Protection Plan. - `id`: The ID of the DDoS Prot | null |
| diagnostic_settings | map(object({ name | A map of diagnostic settings to create on the Key Vault. The map key is delibe | {} |
| encryption | object({ enabled = boo | (Optional) Specifies the encryption settings for the virtual network. - `enable | null |
| lock | object({ kind = string | (Optional) Controls the Resource Lock configuration for this resource. The fol | null |
| peerings | map(object({ name | (Optional) A map of virtual network peering configurations. Each entry specifies | {} |
| retry | object({ error_message_reg | Retry configuration for the resource operations | {} |
| subnets | map(object({ address_prefi | (Optional) A map of subnets to create - `address_prefix` - (Optional) The addr | {} |
| dns_servers | object({ dns_servers = lis | (Optional) Specifies a list of IP addresses representing DNS servers. - `dns_se | null |
| enable_telemetry | bool | This variable controls whether or not telemetry is enabled for the module. For m | true |
address_spaces — The address spaces of the virtual network.name — The resource name of the virtual network.peerings — Information about the peerings created in the module.
Please refer to the peering module documentatresource — The Azure Virtual Network resource. This will be null if an existing vnet is supplied.resource_id — The resource ID of the virtual network.subnets — Information about the subnets created in the module.
Please refer to the subnet module documentatio