"You do not have permission to view this directory or page" typically indicates a configuration issue with the deployed application or the Azure App Service itself.
- Verify Deployment Logs: Check the deployment logs in the Azure Portal to ensure that your Java Spring Boot project was deployed successfully without errors.
- Ensure the WAR/JAR File is Executed: If you deployed a JAR/WAR file, ensure it is being executed correctly on the App Service.
- Ensure that your application is bound to the correct port. Azure App Service uses port 80 for HTTP traffic. Spring Boot must be configured to bind to
0.0.0.0
on port80
- Ensure that the endpoint URL is correct (e.g.,
https://<app-name>.azurewebsites.net/api/resource
). If authentication is required, add appropriate headers or tokens in Postman. - Double-check that the App Service can access the database
- Clean the build (
mvn clean package
) and redeploy. Test withcurl
or a browser directly to the URL (e.g.,https://<app-name>.azurewebsites.net/api/resource
).