I have created 2 app services A,B with private endpoints in the same vnet. I want to call service b from service a.
I have used the same subnet for outbound vnet integration for both. I have also set WEBSITE_VNET_ROUTE_ALL=1. Yet I am unable to call service b from service a. What could be a solution?
Created two App service A, B with private endpoints in the same vnet.
If you are unable to call service
bfrom serviceait could be due to multiple reasons. Ensure that private DNS zone is required when using private endpoints. Otherwise, the URL for the app service does not resolve correctly to an IP address. Make sure both Service A and Service B are in the same VNet subnet.Created both App service vnet integration for outbound traffic with different subnet in same vnet like below:
If you set
WEBSITE_VNET_ROUTE_ALLin the app settings to1, all of the outbound calls are affected and if you want to have your app use Azure DNS private zones, you should setWEBSITE_DNS_SERVERwith value168.63.129.16.Make sure in your Private DNS zone -> under setting, virtual network links -> add like below:
Now when I try to call App service
bfrom serviceain kudo console runs App service in private endpoint got successfully like below:In App service -> under Development Tools, Advanced tools -> select Debug console like below:
References:
Integrate your app with an Azure virtual network - Azure App Service | Microsoft Learn
Connect privately to an App Service apps using private endpoint | Microsoft Learn