Data Source: azurestack_virtual_network

Use this data source to access the properties of an Azure Virtual Network.

Example Usage

data "azurestack_virtual_network" "test" {
  name                 = "production"
  resource_group_name  = "networking"
}

output "virtual_network_id" {
  value = "${data.azurestack_virtual_network.test.id}"
}

Argument Reference

  • name - (Required) Specifies the name of the Virtual Network.
  • resource_group_name - (Required) Specifies the name of the resource group the Virtual Network is located in.

Attributes Reference

  • id - The ID of the virtual network.
  • address_spaces - The list of address spaces used by the virtual network.
  • dns_servers - The list of DNS servers used by the virtual network.
  • subnets - The list of name of the subnets that are attached to this virtual network.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurestack/d/virtual_network.html