» Data Source: azurerm_dns_zone

Use this data source to obtain information about a DNS Zone.

» Example Usage

data "azurerm_dns_zone" "test" {
  name                = "search-eventhubns"
  resource_group_name = "search-service"
}

output "dns_zone_id" {
  value = "${data.azurerm_dns_zone.test.id}"
}

» Argument Reference

  • name - (Required) The name of the DNS Zone.
  • resource_group_name - (Optional) The Name of the Resource Group where the DNS Zone exists. If the Name of the Resource Group is not provided, the first DNS Zone from the list of DNS Zones in your subscription that matches name will be returned.

» Attributes Reference