Azure APIM Policy to failover primary backend URL to secondary in case of a status code 429
I have an APIM endpoint that calls a backend HTTP service. If it returns the status code 429, the call needs to be retried to the secondary backend. The backends are working fine without any issues. I tried setting this is retry policy as below but it didn’t work. Below is the policy i used. Please find the trace logs here