Skip to content

sironite/terraform-azurerm-virtual_network

Repository files navigation

Azure Virtual Network

Changelog Notice Apache V2 License TF Registry

Usage - Module

Virtual Network

module "virtual_network" {
  source  = "sironite/virtual_network/azurerm"
  version = "x.x.x"

  name                = var.virtual_network_name
  location            = var.azure_location
  resource_group_name = var.resource_group_name
  address_space       = var.virtual_network_cidr
}

Providers

Name Version
azurerm >= 2.0.0

Modules

No modules.

Resources

Name Type
azurerm_virtual_network.this resource

Inputs

Name Description Type Required
azure_location The location/region where the virtual network is created. Changing this forces a new resource to be created. string yes
resource_group_name The name of the resource group in which to create the virtual network. Changing this forces a new resource to be created. string yes
virtual_network_cidr The address space that is used the virtual network. You can supply more than one address space. list(string) yes
virtual_network_name The name of the virtual network. Changing this forces a new resource to be created. string yes
virtual_network_dns List of IP addresses of DNS servers list(string) no
virtual_network_tags A mapping of tags to assign to the resource. map(string) no

Outputs

Name Description
virtual_network_address_space The list of address spaces used by the virtual network.
virtual_network_guid The GUID of the virtual network.
virtual_network_id The virtual NetworkConfiguration ID.
virtual_network_location The location/region where the virtual network is created.
virtual_network_name The name of the virtual network
virtual_network_resource_group_name The name of the resource group in which to create the virtual network.

Related documentation