Multitenant private endpoint

Merin Mary 40 Reputation points
2025-02-04T20:56:27.46+00:00

I have a subscription in Tenant A that needs to access a SQL database in Tenant B's subscription. To achieve this, I am creating a private endpoint in Tenant B's subscription. What should the architecture look like? And do the VNets in Tenant A and Tenant B need to be peered for Tenant A to access the SQL database in Tenant B?

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Sai Raghunadh M 2,405 Reputation points Microsoft Vendor
    2025-02-04T23:30:46.4166667+00:00

    Hi @ Merin Mary

    Thanks for the Question and using Microsoft Q&A platform

    As per my understanding, you need to access SQL database in Tenant B's subscription from the subscription in Tenant A.

    To access SQL database in Tenant B subscription, you need to create a Private Endpoint for the SQL database in Tenant B's subscription. This endpoint will give the database a private IP address within Tenant B's Virtual Network (VNet).

    The VNets in Tenant A and Tenant B must be peered. This is necessary for secure communication between both VNets. You will need to establish VNet peering to allow Tenant A to access the database through the private endpoint.

    Please go through these documentations that might help you:

    https://learn.microsoft.com/en-us/azure/virtual-network/create-peering-different-subscriptions?tabs=create-peering-portal

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview

    https://learn.microsoft.com/en-us/azure/azure-sql/database/private-endpoint-overview?view=azuresql#approve-a-private-endpoint-connection

    Hope this helps. Do let us know if you any further queries. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Merin Mary 40 Reputation points
    2025-02-05T15:19:18.27+00:00

    Thankyou ! We have some ip conflicts between the vnets ? What could be some possible solution if we cannot peer because of the ip conflict?


  2. Merin Mary 40 Reputation points
    2025-02-05T16:30:49.79+00:00

    Thankyou so much ! This is architecture/solution we were looking for

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.