Share via

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

Answer accepted by question author

Sai Raghunadh M 4,575 Reputation points Microsoft External Staff Moderator
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.

Was this answer helpful?

2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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