This is the documentation for vnet and subnet module.
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.
No modules.
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 |