DNS resolution when connecting one Azure SQL Server via Private Link to 2 different VNET's

eliasvakkuri 21 Reputation points
2022-11-29T13:05:26.89+00:00

I have an Azure SQL Server that I would like to access from 2 different VNET's. I can create Private Endpoints to both VNET's, but how about the name resolution?

In here https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns I see the following:

Existing Private DNS Zones tied to a single service should not be associated with two different Private Endpoints as it will not be possible to properly resolve two different A-Records that point to the same service. However, Private DNS Zones tied to multiple services would not face this resolution constraint.

So how would I enable name resolution to Azure SQL from both VNET's? Thanks for any replies!

Azure SQL Database
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
595 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
460 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alan Kinane 16,786 Reputation points MVP
    2022-11-29T16:10:06.977+00:00

    You should be able the connect your two VNETs with VNET Peering and link the Azure Private DNS zone to both. You only need one private endpoint for the Azure SQL service.

    https://learn.microsoft.com/en-us/azure/architecture/guide/networking/private-link-hub-spoke-network


0 additional answers

Sort by: Most helpful