FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

azure_virtual_network

Creates a new virtual network including any configured subnets. Each subnet can optionally be configured with a security group to be associated with the subnet.

Example Usage

resource "azure_virtual_network" "default" {
    name = "test-network"
    address_space = ["10.1.2.0/24"]
    location = "West US"

    subnet {
        name = "subnet1"
        address_prefix = "10.1.2.0/25"
    }
}

Argument Reference

The following arguments are supported:

The subnet block supports:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io