Azure Private DNS Aaaa Record
This page shows how to write Terraform and Azure Resource Manager for Private DNS Aaaa Record and write them securely.
azurerm_private_dns_aaaa_record (Terraform)
The Aaaa Record in Private DNS can be configured in Terraform with the resource name azurerm_private_dns_aaaa_record
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_private_dns_aaaa_record" "over1B" {
name = "test"
zone_name = azurerm_private_dns_zone.test.name
resource_group_name = azurerm_resource_group.test.name
ttl = 300
records = ["fd5d:70bc:930e:d008:0000:0000:0000:7334", "fd5d:70bc:930e:d008::7335"]
resource "azurerm_private_dns_aaaa_record" "aaaa_record_private_with_zone" {
count = var.create_dns_zone ? (var.public_dns_zone ? 0 : length(var.aaaa_records)) : 0
zone_name = var.zone_name
resource_group_name = var.resource_group_name
resource "azurerm_private_dns_aaaa_record" "over1B" {
name = "test"
zone_name = azurerm_private_dns_zone.test.name
resource_group_name = azurerm_resource_group.test.name
ttl = 300
records = ["fd5d:70bc:930e:d008:0000:0000:0000:7334", "fd5d:70bc:930e:d008::7335"]
resource "azurerm_private_dns_aaaa_record" "othertestaaaa" {
name = "othertest"
zone_name = azurerm_private_dns_zone.testzone.name
resource_group_name = data.azurerm_resource_group.example.name
ttl = 300
records = ["fd5d:70bc:930e:d008:0000:0000:0000:7334", "fd5d:70bc:930e:d008::7335"]
resource "azurerm_private_dns_aaaa_record" "this" {
name = var.name
records = var.records
resource_group_name = var.resource_group_name
tags = var.tags
ttl = var.ttl
resource "azurerm_private_dns_aaaa_record" "this" {
name = var.name
records = var.records
resource_group_name = var.resource_group_name
tags = var.tags
ttl = var.ttl
resource "azurerm_private_dns_aaaa_record" "aaaa_records" {
for_each = try(var.records.aaaa_records, {})
name = each.value.name
resource_group_name = var.resource_group_name
zone_name = azurerm_private_dns_zone.private_dns.name
resource "azurerm_private_dns_aaaa_record" "aaaa_records" {
for_each = try(var.records.aaaa_records, {})
name = each.value.name
resource_group_name = var.resource_group_name
zone_name = azurerm_private_dns_zone.private_dns.name
resource "azurerm_private_dns_aaaa_record" "aaaa_records" {
for_each = try(var.records.aaaa_records, {})
name = each.value.name
resource_group_name = var.resource_group_name
zone_name = azurerm_private_dns_zone.private_dns.name
resource "azurerm_private_dns_aaaa_record" "aaaa_records" {
for_each = try(var.records.aaaa_records, {})
name = each.value.name
resource_group_name = var.resource_group_name
zone_name = azurerm_private_dns_zone.private_dns.name
Parameters
-
fqdn
optional computed - string -
id
optional computed - string -
name
required - string -
records
required - set of string -
resource_group_name
required - string -
tags
optional - map from string to string -
ttl
required - number -
zone_name
required - string -
timeouts
single block
Explanation in Terraform Registry
Enables you to manage DNS AAAA Records within Azure Private DNS.
Microsoft.Network/privateDnsZones/AAAA (Azure Resource Manager)
The privateDnsZones/AAAA in Microsoft.Network can be configured in Azure Resource Manager with the resource name Microsoft.Network/privateDnsZones/AAAA
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Frequently asked questions
What is Azure Private DNS Aaaa Record?
Azure Private DNS Aaaa Record is a resource for Private DNS of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Private DNS Aaaa Record?
For Terraform, the gilyas/infracost, scalair/terraform-azurerm-dns and infracost/infracost source code examples are useful. See the Terraform Example section for further details.