get Zone Virtual Network Link
suspend fun getZoneVirtualNetworkLink(argument: GetZoneVirtualNetworkLinkPlainArgs): GetZoneVirtualNetworkLinkResult
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 pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.privatedns.getZoneVirtualNetworkLink({
name: "test",
resourceGroupName: "test-rg",
privateDnsZoneName: "test-zone",
});
export const privateDnsARecordId = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.privatedns.get_zone_virtual_network_link(name="test",
resource_group_name="test-rg",
private_dns_zone_name="test-zone")
pulumi.export("privateDnsARecordId", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.PrivateDns.GetZoneVirtualNetworkLink.Invoke(new()
{
Name = "test",
ResourceGroupName = "test-rg",
PrivateDnsZoneName = "test-zone",
});
return new Dictionary<string, object?>
{
["privateDnsARecordId"] = example.Apply(getZoneVirtualNetworkLinkResult => getZoneVirtualNetworkLinkResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/privatedns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := privatedns.LookupZoneVirtualNetworkLink(ctx, &privatedns.LookupZoneVirtualNetworkLinkArgs{
Name: "test",
ResourceGroupName: "test-rg",
PrivateDnsZoneName: "test-zone",
}, nil)
if err != nil {
return err
}
ctx.Export("privateDnsARecordId", example.Id)
return nil
})
}
Content copied to clipboard
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()));
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:privatedns:getZoneVirtualNetworkLink
arguments:
name: test
resourceGroupName: test-rg
privateDnsZoneName: test-zone
outputs:
privateDnsARecordId: ${example.id}
Content copied to clipboard
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.
Parameters
name
The name of the Private DNS Zone Virtual Network Link.
private Dns Zone Name
The name of the Private DNS zone (without a terminating dot).
resource Group Name
Specifies the resource group where the Private DNS Zone exists.
See also
suspend fun getZoneVirtualNetworkLink(argument: suspend GetZoneVirtualNetworkLinkPlainArgsBuilder.() -> Unit): GetZoneVirtualNetworkLinkResult
Return
A collection of values returned by getZoneVirtualNetworkLink.
Parameters
argument
Builder for com.pulumi.azure.privatedns.kotlin.inputs.GetZoneVirtualNetworkLinkPlainArgs.