Skip to content

Data Source: azurermPrivateDnsZoneVirtualNetworkLink

Use this data source to access information about an existing Private DNS zone Virtual Network Link. These Links enable DNS resolution and registration inside Azure Virtual Networks using Azure Private DNS.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermPrivateDnsZoneVirtualNetworkLinkExample =
  new azurerm.dataAzurermPrivateDnsZoneVirtualNetworkLink.DataAzurermPrivateDnsZoneVirtualNetworkLink(
    this,
    "example",
    {
      name: "test",
      private_dns_zone_name: "test-zone",
      resource_group_name: "test-rg",
    }
  );
new cdktf.TerraformOutput(this, "private_dns_a_record_id", {
  value: dataAzurermPrivateDnsZoneVirtualNetworkLinkExample.id,
});

Argument Reference

  • name - The name of the Private DNS Zone Virtual Network Link.

  • privateDnsZoneName - The name of the Private DNS zone (without a terminating dot).

  • resourceGroupName - Specifies the resource group where the Private DNS Zone exists.

Attributes Reference

  • id - The ID of the Private DNS Zone Virtual Network Link.

  • virtualNetworkId - The ID of the Virtual Network that is linked to the DNS Zone.

  • registrationEnabled - Whether the auto-registration of virtual machine records in the virtual network in the Private DNS zone is enabled or not.

  • tags - A mapping of tags to assign to the resource.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Private DNS Zone Virtual Network Link.