azurestack_dns_a_record

Enables you to manage DNS A Records within Azure DNS.

Example Usage

resource "azurestack_resource_group" "test" {
  name     = "acceptanceTestResourceGroup1"
  location = "West US"
}

resource "azurestack_dns_zone" "test" {
  name                = "mydomain.com"
  resource_group_name = azurestack_resource_group.test.name
}

resource "azurestack_dns_a_record" "test" {
  name                = "test"
  zone_name           = azurestack_dns_zone.test.name
  resource_group_name = azurestack_resource_group.test.name
  ttl                 = 300
  records             = ["10.0.180.17"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

A records can be imported using the resource id, e.g.

terraform import azurestack_dns_a_record.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1/A/myrecord1