getZoneVirtualNetworkLink

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.privatedns.PrivatednsFunctions;
import com.pulumi.azure.privatedns.inputs.GetZoneVirtualNetworkLinkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PrivatednsFunctions.getZoneVirtualNetworkLink(GetZoneVirtualNetworkLinkArgs.builder()
.name("test")
.resourceGroupName("test-rg")
.privateDnsZoneName("test-zone")
.build());
ctx.export("privateDnsARecordId", example.applyValue(getZoneVirtualNetworkLinkResult -> getZoneVirtualNetworkLinkResult.id()));
}
}

Return

A collection of values returned by getZoneVirtualNetworkLink.

Parameters

argument

A collection of arguments for invoking getZoneVirtualNetworkLink.


suspend fun getZoneVirtualNetworkLink(name: String, privateDnsZoneName: String, resourceGroupName: String): GetZoneVirtualNetworkLinkResult

Return

A collection of values returned by getZoneVirtualNetworkLink.

See also

Parameters

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.


Return

A collection of values returned by getZoneVirtualNetworkLink.

See also

Parameters

argument

Builder for com.pulumi.azure.privatedns.kotlin.inputs.GetZoneVirtualNetworkLinkPlainArgs.