All the instances in one or more of your backend pools are unhealthy. This will result in a 502 error when you try to access your application hosted behind the Application Gateway. Please check the backend health and resolve the issue. I am getting this error, can you please guide me what is the problem. I am using WAF 2 with the linux based vm.