Hi Damian,
Thanks for contacting Microsoft Q&A forum,
The HTTP 502 Bad Gateway with ERRORINFO_UPSTREAM_NO_LIVE from Azure Application Gateway means cannot reach any healthy backend instances
As you mentioned that using the App Services (Linux), so you can check & validate some below steps:
Checklist to Resolve 502 with App Service (Linux) Behind Application Gateway
- App Service Must Be in the Same Region
Ensure the App Service is in the same region as the Application Gateway. Cross-region App Services are not supported as backend targets.
- Use Custom Domain or Regional VNet Integration
App Services (Linux) do not support direct IP-based backend pool configuration, You must use:
- FQDN-based backend pool (e.g.,
yourapp.azurewebsites.net) - Ensure "Pick hostname from backend settings" is enabled in the backend HTTP settings.
- Health Probe Configuration
Application Gateway uses health probes to determine backend availability. If probes fail, you get ERRORINFO_UPSTREAM_NO_LIVE.
- Create a custom probe that matches your App Service endpoint:
- Protocol: HTTPS
- Host:
yourapp.azurewebsites.net - Path:
/or/testdepending on your app - Match expected status code (e.g., 200)
- Associate this probe with the backend HTTP settings.
- Host:
- Backend HTTP Settings
- Override with new host name: Set to
yourapp.azurewebsites.net - Override path: Set to
/if your app expects root - Use HTTPS: Ensure SSL is enabled
Pick hostname from backend settings-Enabled
- App Service Must Respond to the Path
If your App Service only responds to / and not /test, ensure the path rewrite is working correctly:
- Use rewrite rules in Application Gateway to rewrite
/testto/ - Alternatively, configure your App Service to handle
/testroute
- TLS/SSL Issues
If the App Service uses a custom domain with HTTPS, ensure:
- The certificate is valid
- Application Gateway trusts the certificate (use a trusted CA)
Hope, you find this comment helpful, if yes, please “up-vote” for the information provided , this can be beneficial to community members.
Kindly let us know if you have any additional questions.
Thanks