How to Set a Retry Policy in Azure API Management (APIM)

Sometimes requests are denied due to many reasons (like 429 Too Many Request) and it is wise to just retry. The retry can be set on multiple levels, in code (with polly), in service level or in api gateway with a simple policy. In this post I will focus on setting the retry on the Azure Api Gateway. The following policy retries backend calls up to three times if they fail with certain status…