Hello Santosh Pingali
Greetings!
I understand that you are receiving the 403-status code. However, when accessing the application gateway URL, you will encounter a 502 error.
Based on your scenario, we observed that you are receiving a 502 error when trying to access the application gateway URL. From the health snapshot you provided, we understand that your backend is unhealthy, which is causing the 502 error.
We also noticed that the backend web app URL "wd-az-asp-dev8-webservice.azurewebsites.net" is returning a 403 error for the application gateway request, marking the backend health as unhealthy.
Could you please check if there are any network restrictions configured on the backend web app. If so, please allow the application gateway to reach the web app. This should result in a 200 response instead of 403, and the system will work as expected.
And let me know (azagw-dsm.testwd.com) this belongs to which resource.
Check the reference doc: Azure App Service access restrictions
Hope the above answer helps! Please let us know do you have any further queries.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.