Azure web app 403 error using private endpoint

asked 2022-06-13T13:39:21.61+00:00
Kevin 31 Reputation points

I created a private endpoint to restrict access to our web application, also a private dns zone was created (https://learn.microsoft.com/en-us/azure/app-service/networking/private-endpoint) and mywebapp.privatelink A record is added to to privatelink.azurewebsites.net dns zone, but I still got 403 forbidden error. Did I miss something? anyone could help check for me? Thx!!!

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,296 questions
No comments
{count} votes

Accepted answer
  1. answered 2022-06-13T14:47:23.903+00:00
    Ryan Hill 15,991 Reputation points Microsoft Employee

    Hi @Kevin ,

    Sounds like you're missing the CNAME that points myapp.azurewebsites.net to myapp.privatelink.azurewebsites.net. Check your DNS records to see if that CNAME is missing. To verify, use nslookup myapp.azurewebsites.net from an Azure VM that's associated with the same VNET your app service is on.


0 additional answers

Sort by: Most helpful