Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Per your latest comment, I see you were able to resolve the issue.
Issue :
- You have a VM acting as backend of Application Gateway
- You are receiving 502 Bad Gateway intermittently
- The App gateway access logs, and you see errors "ERRORINFO_UPSTREAM_NO_LIVE" and "ERRORINFO_UPSTREAM_CLOSED_CONNECTION" (which belong to App Gw 5XX Errors)
- You informed NSG Rules are allowed and there is no UDR configured, issue remains even with Local OS Firewall is disabled.
Solution :
- You found that the missing SSL certificate chain caused this issue.
- You had revoked and replaced it with another open-source SSL certificate with a full bundle for testing, which worked as expected.
Kindly let us know if you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.