Website on Azure App Container service throwing 403 Forbidden error

Mani Agarwal 0 Reputation points
2025-03-17T07:29:15.5633333+00:00

Hi Team,

I am deploying my micro service application using the Azure App service (Container Service). I have 1 frontend and 3 backend. I have followed these steps also mentioned here in this link: https://learn.microsoft.com/en-us/answers/questions/2107806/how-to-make-backend-appservice-accept-the-traffic

I am still getting the same error.

I have integrated the Vnet in frontend.

Created Private Endpoint in private subnet for backend app service

Allow access restrictions rule in backend app too.

Created NSG and attached it to.

For backend, Vnet integration it says: Virtual network integration:Not supported

Created Authentication (is it mandatory ?)

Still getting the same error. Also, some of the doc links are not found.

Could you please help me with this.

Thanks,

Mani

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,951 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Laxman Reddy Revuri 5,405 Reputation points Microsoft External Staff Moderator
    2025-03-18T07:17:17.5433333+00:00

    Hi @Mani Agarwal
    A 403 Forbidden error when accessing your Azure App Service could be due to several reasons, especially when dealing with virtual network integration and private endpoints.
    1.Make sure your NSG rules permit traffic from the frontend to the backend. Verify the NSG is properly configured and is attached to the subnet your backend app service is stationed at.

    2.Check that the private endpoint to your backend app service is properly configured. Check whether the DNS configuration is complete and ensure the private DNS zones are linked to your virtual network.
    https://learn.microsoft.com/en-us/azure/app-service/tutorial-networking-isolate-vnet#create-private-endpoints

    3.Review the access restrictions for your backend app service. Check that the rules that are configured grant traffic from the frontend app service and any other relevant IP addresses.

    4.If the backend app service VNet integration displays “Not supported,” that is an indication the App service plan does not support VNet integration. Confirm that your backend app service is either a Premium or Isolated plan since those plans support VNet integration.
    https://learn.microsoft.com/en-us/azure/app-service/networking-features

    5.Even though the backend app service does not require authentication, if enabled, make sure the frontend app service is set up correctly to authenticate with the backend service.
    Kindly refer below documentations:
    Configure virtual network integration in your frontend web app
    https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/troubleshoot-forbidden#firewall-blocking-requests


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.