1. Packages
  2. Azure Classic
  3. API Docs
  4. privatedns
  5. getResolverVirtualNetworkLink

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

azure.privatedns.getResolverVirtualNetworkLink

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

    Gets information about an existing Private DNS Resolver Virtual Network Link.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.PrivateDns.GetResolverVirtualNetworkLink.Invoke(new()
        {
            DnsForwardingRulesetId = "example-dns-forwarding-ruleset-id",
            Name = "example-link",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/privatedns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := privatedns.LookupResolverVirtualNetworkLink(ctx, &privatedns.LookupResolverVirtualNetworkLinkArgs{
    			DnsForwardingRulesetId: "example-dns-forwarding-ruleset-id",
    			Name:                   "example-link",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetResolverVirtualNetworkLinkArgs;
    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.getResolverVirtualNetworkLink(GetResolverVirtualNetworkLinkArgs.builder()
                .dnsForwardingRulesetId("example-dns-forwarding-ruleset-id")
                .name("example-link")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.privatedns.get_resolver_virtual_network_link(dns_forwarding_ruleset_id="example-dns-forwarding-ruleset-id",
        name="example-link")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.privatedns.getResolverVirtualNetworkLink({
        dnsForwardingRulesetId: "example-dns-forwarding-ruleset-id",
        name: "example-link",
    });
    
    variables:
      example:
        fn::invoke:
          Function: azure:privatedns:getResolverVirtualNetworkLink
          Arguments:
            dnsForwardingRulesetId: example-dns-forwarding-ruleset-id
            name: example-link
    

    Using getResolverVirtualNetworkLink

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getResolverVirtualNetworkLink(args: GetResolverVirtualNetworkLinkArgs, opts?: InvokeOptions): Promise<GetResolverVirtualNetworkLinkResult>
    function getResolverVirtualNetworkLinkOutput(args: GetResolverVirtualNetworkLinkOutputArgs, opts?: InvokeOptions): Output<GetResolverVirtualNetworkLinkResult>
    def get_resolver_virtual_network_link(dns_forwarding_ruleset_id: Optional[str] = None,
                                          name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetResolverVirtualNetworkLinkResult
    def get_resolver_virtual_network_link_output(dns_forwarding_ruleset_id: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetResolverVirtualNetworkLinkResult]
    func LookupResolverVirtualNetworkLink(ctx *Context, args *LookupResolverVirtualNetworkLinkArgs, opts ...InvokeOption) (*LookupResolverVirtualNetworkLinkResult, error)
    func LookupResolverVirtualNetworkLinkOutput(ctx *Context, args *LookupResolverVirtualNetworkLinkOutputArgs, opts ...InvokeOption) LookupResolverVirtualNetworkLinkResultOutput

    > Note: This function is named LookupResolverVirtualNetworkLink in the Go SDK.

    public static class GetResolverVirtualNetworkLink 
    {
        public static Task<GetResolverVirtualNetworkLinkResult> InvokeAsync(GetResolverVirtualNetworkLinkArgs args, InvokeOptions? opts = null)
        public static Output<GetResolverVirtualNetworkLinkResult> Invoke(GetResolverVirtualNetworkLinkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResolverVirtualNetworkLinkResult> getResolverVirtualNetworkLink(GetResolverVirtualNetworkLinkArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:privatedns/getResolverVirtualNetworkLink:getResolverVirtualNetworkLink
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DnsForwardingRulesetId string
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    Name string
    Name of the Private DNS Resolver Virtual Network Link.
    DnsForwardingRulesetId string
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    Name string
    Name of the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId String
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    name String
    Name of the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId string
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    name string
    Name of the Private DNS Resolver Virtual Network Link.
    dns_forwarding_ruleset_id str
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    name str
    Name of the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId String
    ID of the Private DNS Resolver DNS Forwarding Ruleset.
    name String
    Name of the Private DNS Resolver Virtual Network Link.

    getResolverVirtualNetworkLink Result

    The following output properties are available:

    DnsForwardingRulesetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    Name string
    VirtualNetworkId string
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
    DnsForwardingRulesetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    Name string
    VirtualNetworkId string
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId String
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    name String
    virtualNetworkId String
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId string
    id string
    The provider-assigned unique ID for this managed resource.
    metadata {[key: string]: string}
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    name string
    virtualNetworkId string
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
    dns_forwarding_ruleset_id str
    id str
    The provider-assigned unique ID for this managed resource.
    metadata Mapping[str, str]
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    name str
    virtual_network_id str
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
    dnsForwardingRulesetId String
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String>
    The metadata attached to the Private DNS Resolver Virtual Network Link.
    name String
    virtualNetworkId String
    The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi