Azure web app 403 error using private endpoint

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

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,299 questions
0 comments No comments
{count} votes

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

    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

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.