Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 3.95 KB

README.md

File metadata and controls

60 lines (44 loc) · 3.95 KB

vnet and subnet module

This is the documentation for vnet and subnet module.

Summary

This module creates following resources -

  • a resource group
  • a vnet
  • a subnet

Please read the documentation below to know details about the variables accepted by this module.

Requirements

Name Version
azurerm =3.65.0

Providers

Name Version
azurerm =3.65.0

Modules

No modules.

Resources

Name Type
azurerm_resource_group.az_rg resource
azurerm_subnet.az_subnet resource
azurerm_virtual_network.az_vnet resource

Inputs

Name Description Type Default Required
additional_resource_group_tags additional tags for resource group map(any) {} no
additional_vnet_tags additional tags for vnet map(any) {} no
address_space The address space that is used the virtual network. You can supply more than one address space but for our module implementation we are limiting it to 1 address space only. list(string)
[
"10.1.0.0/16"
]
no
region The location/region where the resource group. Changing this forces a new resource to be created. We will create the vnet and subnets in the same location/region where the resource group is. string n/a yes
resource_group_name The Name for this Resource Group. Changing this forces a new Resource Group to be created. string n/a yes
service_endpoints The list of Service endpoints to associate with the subnet. Possible values include: Microsoft.AzureActiveDirectory, Microsoft.AzureCosmosDB, Microsoft.ContainerRegistry, Microsoft.EventHub, Microsoft.KeyVault, Microsoft.ServiceBus, Microsoft.Sql, Microsoft.Storage, Microsoft.Storage.Global and Microsoft.Web. list(string) [] no
subnet_address_prefix The address prefixes to use for the subnet. Currently only a single address prefix can be set as the Multiple Subnet Address Prefixes Feature is not yet in public preview or general availability. list(string)
[
"10.1.0.0/16"
]
no
subnet_name The name of the subnet. Changing this forces a new resource to be created. string n/a yes
tags common tags to be assigned to all the resources map(any) {} no
vnet_name The name of the virtual network. Changing this forces a new resource to be created. string n/a yes

Outputs

Name Description
az_rg_id The ID of the resource group
az_rg_name The ID of the resource group
az_subnet_id The ID of the subnet
az_vnet_id The ID of the vnet