You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi.periketi d923ff14e6 Merge pull request 'Upgrade to 2.x provider' (#2) from test/providerupdate into master 8 months ago
examples add CHANGELOG.md 8 months ago
modules Removed part not supported anymore 8 months ago
.gitignore Added files for vnet and subnets 9 months ago
.pre-commit-config.yaml Converted to 2.0 with base modifs 8 months ago
CHANGELOG.md add CHANGELOG.md 8 months ago
Jenkinsfile Added files for vnet and subnets 9 months ago
LICENSE Added files for vnet and subnets 9 months ago
README.md add CHANGELOG.md 8 months ago
main.tf fix: fixing null value from subnet 9 months ago
outputs.tf fix: removed irrelevant comment 9 months ago
variables.tf fix: revert to previous method, trying to figure what could work when disabled 9 months ago
versions.tf Converted to 2.0 with base modifs 8 months ago

README.md

terraform-module-azurerm-virtual-network

Usage

This module is used to deploy a single virtual network.

This virtual network supports custom address spaces, custom DNS servers and being linked to a standard SKU DDoS protection plan (Note that you have a limit of one plan per region (Azure limitation)).

Requirements

Name Version
terraform >= 0.12
azurerm >= 2.0.0

Providers

Name Version
azurerm >= 2.0.0

Inputs

Name Description Type Default Required
enable_nsg Enable or disable NSG deployment. bool false no
enable_rt Enable or disable route table deployment. bool false no
enabled Enable or disable module bool true no
location Location of the virtual network. string n/a yes
network_security_groups_config Required with enable_nsg to true .Object containing deployment information for network security groups. any {} no
resource_group_name Resource group where the vnet resides. string n/a yes
route_tables_config Required with enable_rt to true . Object containing deployment information for route tables. any {} no
subnets_config Required if you want to deploy a virtual network. Object containing deployment information for subnets. any
{
“defaultsn”: {
“address_prefix”: “10.0.1.0/24”,
“name”: “defaultsn"
}
}
no
tags Tags to add to the virtual network. map {} no
virtual_network_address_space Required if you want to deploy a virtual network. The address space that is used by the virtual network list(string)
[
“10.0.0.0/8"
]
no
virtual_network_dns_servers Required for custom DNS servers. List of IP addresses of DNS servers. If default value not modified, uses default Azure DNS. list [] no
virtual_network_name Required if you want to deploy a virtual network. Name of the virtual network. string "default" no
virtual_network_network_ddos_protection_plan Object containing bool about enabling ddos plan and ID of the ddos plan. list [] no

Outputs

Name Description
network_security_group_ids n/a
route_table_ids n/a
subnet_cidr_list CIDR list of the created subnets
subnet_ids IDs of the created subnets
subnet_names Names list of the created subnet
subnets_cidrs_map Map with names and CIDRs of the created subnets
subnets_ids_map Map with names and IDs of the created subnets
virtual_network_address_space Virtual network space
virtual_network_dns_servers Virtual network DNS Servers
virtual_network_id Virtual network generated id
virtual_network_location Virtual network location
virtual_network_name Virtual network name
virtual_network_resource_group_name Virtual network resource group name

Examples

Usage example is found in the ./examples/default/ folder.

Inspec

No Inspec tests are done for this module.