When form submission is done between 2 VM's in Application gateway it shows 502 error
The issue was due to the incorrect timeout value set on Health Probe. When your server is down, the requests will be sent to the backend unhealthy server for 4 minutes as the timeout value is too long. Once the timeout value is reduced, the issue is resolved.