@JohnTristam ,
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
From your verbatim,
- You have an AppService (from SubscriptionA) integrated into a VNETB in SubscriptionB
- You have a SQL Service (from SubscriptionB) with a PrivateEndPoint in VNETB in SubscriptionB
- You have a PE for AppService (from SubscriptionA) in the VNETA (SubscriptionA)
"My understanding is the private endpoint with an app service is only for inbound connections, while the vnet integration would be for outbound"
"I went to the private dns zone in Subscription A for the app service, and linked it to the SQL Servers VNet in subscription B. In my head, this should give the SQL server connectivity to the app service inbound via private link service without the need for a VNET peer"
- Incorrect
- Private DNS Zone is only for name resolutions, this does not provide connectivity.
- From your verbatim, Point 3,
- A PE only provides inbound connectivity for resources that are connected to the VNET in which the PE resides.
- In this case, VNETA is where the PE resides.
- And VNETA is not connected to VNETB, Hence no resource in VNETB can access the AppService PE in VNETA
If my observation of your existing architecture is incorrect - Please share an architecture diagram as to avoid confusions
Now,
Your requirement is to provide bidirectional connectivity between AppService and the SQL Servers. Correct me if I am wrong.
- You having AppService Integration in VNETB and a PE for SQL Service in VNETB provides App Service access to SQL via PE. (this is unidirectional)
- Now, unless and until
- you integrate the SQL Service to the VNETB
- and create a PE for AppService in VNETB
The SQL Service cannot access the App Service.
However, I do not understand why you would need inbound access from Azure SQL Service to App Service in the first place.
- AFAIK, Azure SQL Service cannot make outbound connections.
- Can you please elaborate how exactly are you testing the "connectivity from Azure SQL Service" to the App Service?
Cheers,
Kapil