github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/azurerm/r/dns_zone.html.markdown (about) 1 --- 2 layout: "azurerm" 3 page_title: "Azure Resource Manager: azurerm_dns_zone" 4 sidebar_current: "docs-azurerm-resource-dns-zone" 5 description: |- 6 Create a DNS Zone. 7 --- 8 9 # azurerm\_dns\_zone 10 11 Enables you to manage DNS zones within Azure DNS. These zones are hosted on Azure's name servers to which you can delegate the zone from the parent domain. 12 13 ## Example Usage 14 15 ``` 16 resource "azurerm_resource_group" "test" { 17 name = "acceptanceTestResourceGroup1" 18 location = "West US" 19 } 20 resource "azurerm_dns_zone" "test" { 21 name = "mydomain.com" 22 resource_group_name = "${azurerm_resource_group.test.name}" 23 } 24 ``` 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `name` - (Required) The name of the DNS Zone. Must be a valid domain name. 30 31 * `resource_group_name` - (Required) Specifies the resource group where the resource exists. Changing this forces a new resource to be created. 32 33 * `tags` - (Optional) A mapping of tags to assign to the resource. 34 35 ## Attributes Reference 36 37 The following attributes are exported: 38 39 * `id` - The DNS Zone ID. 40 * `max_number_of_record_sets` - (Optional) Maximum number of Records in the zone. Defaults to `1000`. 41 * `number_of_record_sets` - (Optional) The number of records already in the zone.