Data Source: azurerm_subnet

Use this data source to access information about an existing Subnet within a Virtual Network.

Example Usage

data "azurerm_subnet" "example" {
  name                 = "backend"
  virtual_network_name = "production"
  resource_group_name  = "networking"
}

output "subnet_id" {
  value = data.azurerm_subnet.example.id
}

Argument Reference

Attributes Reference

Timeouts

The timeouts block allows you to specify timeouts for certain actions: