Skip to content

Data Source: azurermPrivateDnsResolver

Gets information about an existing Private DNS Resolver.

Example Usage

/*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.*/
new azurerm.dataAzurermPrivateDnsResolver.DataAzurermPrivateDnsResolver(
  this,
  "test",
  {
    name: "example",
    resource_group_name: "example-resourcegroup-name",
  }
);

Arguments Reference

The following arguments are supported:

  • name - (Required) Name of the Private DNS Resolver.

  • resourceGroupName - (Required) Name of the Resource Group where the Private DNS Resolver exists.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the DNS Resolver.

  • location - The Azure Region where the Private DNS Resolver exists.

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

  • tags - The tags assigned to the Private DNS Resolver.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Private DNS Resolver.