question

Erwin-6674 avatar image
0 Votes"
Erwin-6674 asked TchimwaSougang-3249 edited

Application Gateway http redirect when health probe error with backend pool

hi,
Does, anyone know to redirect traffic to healthy virtual machine when health probe detected an issue on the default pool in the application gateway?


Thanks for your help.

azure-application-gateway
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have 2 VMs 1 per availability zone. if health probe detected my vm1(az1) is down, need to redirect the traffic to VM2 (az2).

Thanks.

0 Votes 0 ·

1 Answer

TchimwaSougang-3249 avatar image
0 Votes"
TchimwaSougang-3249 answered TchimwaSougang-3249 edited

@Erwin-6674 Thank you for your question. In fact, if both VMs are part of the same pool, there is nothing to do because it will be done automatically. When a VM fails to respond to the probe with the expected HTTP response, the AppGW automatically takes it out of the rotation and only keep the VM responding successfully to the probe. The VM supposed healthy will be the only the only one responding to the requests coming from the customers and routed to the backend by the AppGW.
https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-probe-overview

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.