How to create a virtual Network Link on a Private DNS Zone in C#

Michel Perfetti 1 Reputation point MVP
2021-03-01T22:07:18.423+00:00

I'm looking at the current Azure .net SDK (https://learn.microsoft.com/en-us/dotnet/api/overview/azure/privatedns/management?view=azure-dotnet) And I do not find any method to create a virtual network link on a private DNS Zone.

What do I miss?

Regards,

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
598 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,158 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,277 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,196 Reputation points
    2021-03-03T22:18:23.54+00:00

    @Michel Perfetti The below link has the method to create or update a virtual network link to the specified Private DNS zone.

    https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.privatedns.ivirtualnetworklinksoperations.begincreateorupdatewithhttpmessagesasync?view=azure-dotnet#Microsoft_Azure_Management_PrivateDns_IVirtualNetworkLinksOperations_BeginCreateOrUpdateWithHttpMessagesAsync_System_String_System_String_System_String_Microsoft_Azure_Management_PrivateDns_Models_VirtualNetworkLink_System_String_System_String_System_Collections_Generic_Dictionary_System_String_System_Collections_Generic_List_System_String___System_Threading_CancellationToken_

    Please let us know if this helps.

    -------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

  2. Michel Perfetti 1 Reputation point MVP
    2021-03-05T09:45:56.437+00:00

    Thank you.

    This kind of method would need a better documentation: it's hard to see what the needed values of all these parameters are.

    Regards,