How to setup private endpoint for multiple VNETs

faizal rub 1 Reputation point
2022-07-28T16:45:05.673+00:00

I have applications running in two separate VNETs (in same subscription) that need to connect to a third party DB service using Private Link. I have created two private end points specific to each VNET then created a private DNS Zone that maps to the private IP of the VNET.

It works fine when only a single VNET is linked and corresponding IP is mapped for the DNS name A-record.

When I link both VNETs and add both IPs in the A-record, connection is throwing timeout error( somehow the referenced IPs are swapped for the VNETs). Any help in resolving this issue is much appreciated! Thanks

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
629 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.
484 questions
{count} votes

1 answer

Sort by: Most helpful
  1. msrini-MSFT 9,271 Reputation points Microsoft Employee
    2022-07-31T07:04:41.053+00:00

    Hi,

    In your scenario, you will need to create 2 Private DNS Zone for the same name which is privatelink.db.com and add respective A records.

    Then link each Private DNS Zone to respective VNETs. It should work fine.

    Regards,
    Karthik Srinivas