vnet

Azure/vnet/azurerm

Terraform Module HCL AZURERM

Terraform module to create/provision Azure vnet

Install
module "vnet" {
source = "Azure/vnet/azurerm"
version = "5.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

[DEPRECATED] terraform-azurerm-vnet > NOTE: This terraform-azurerm-vnet module is now deprecated. The module will no longer receive updates or support. Users are encouraged to transition to the avm-res-network-virtualnetwork module for future deployments. Create a basic virtual network in Azure This Terraform module deploys a Virtual Network in Azure with a subnet or a set of subnets passed in as input parameters. The module does not create nor expose a network security group. This would need to be defined separately as additional security rules on subnets in the deployed network. Notice to contributor Thanks for your contribution! This module was created before Terraform introduce for_each, and according to the document: >If your instances are almost identical, count is appropriate. If so

Inputs (20)
NameTypeDescriptionDefault
resource_group_namestringName of the resource group to be imported. required
vnet_locationstringThe location of the vnet to create. required
bgp_communitystring(Optional) The BGP community attribute in format `<as-number>:<community-value>`null
subnet_delegationmap(map(any))A map of subnet name to delegation block on the subnet{}
subnet_prefixeslist(string)The address prefix to use for the subnet.[ "10.0.1.0/24", "10.0.2.0/24", "1
subnet_service_endpointsmap(any)A map of subnet name to service endpoints to add to the subnet.{}
address_spacelist(string)The address space that is used by the virtual network.[ "10.0.0.0/16" ]
dns_serverslist(string)The DNS servers to be used with vNet.[]
subnet_enforce_private_link_endpoint_network_policiesmap(bool)A map of subnet name to enable/disable private link endpoint network policies on{}
ddos_protection_planobject({ enable = bool The set of DDoS protection plan configurationnull
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
subnet_enforce_private_link_service_network_policiesmap(bool)A map of subnet name to enable/disable private link service network policies on {}
tracing_tags_prefixstringDefault prefix for generated tracing tags"avm_"
use_for_eachboolUse `for_each` instead of `count` to create multiple resource instances. Defaulttrue
vnet_namestringName of the vnet to create"acctvnet"
nsg_idsmap(string)A map of subnet name to Network Security Group IDs{}
route_tables_idsmap(string)A map of subnet name to Route table ids{}
subnet_nameslist(string)A list of public subnets inside the vNet.[ "subnet1", "subnet2", "subnet3"
tagsmap(string)The tags to associate with your network and subnets.{}
tracing_tags_enabledboolWhether enable tracing tags that generated by BridgeCrew Yor.false
Outputs (7)
vnet_subnets — The ids of subnets created inside the newly created vNet
vnet_subnets_name_id — Can be queried subnet-id by subnet name by using lookup(module.vnet.vnet_subnets_name_id, subnet1)
vnet_address_space — The address space of the newly created vNet
vnet_guid — The GUID of the newly created vNet
vnet_id — The id of the newly created vNet
vnet_location — The location of the newly created vNet
vnet_name — The Name of the newly created vNet
Resources (7)
azurerm_subnetazurerm_subnet_network_security_group_associationazurerm_subnet_route_table_associationazurerm_virtual_networkazurerm_virtual_network_dns_serversmodtm_telemetryrandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version5.0.1
Cloud AZURERM
★ Stars137
Forks280
Total downloads3.2M
Inputs20
Outputs7
Resources7
Examples6
LicenseMIT
NamespaceAzure
Updated