Sure, here it is:
[FunctionName("your-function")]
public static async Task Run.....
var retryCount = 0; // Retries counter
while (true)
{
try
{
... whatever you do in your function
}
catch (Exception ex)
{
System.Threading.Thread.Sleep(10000);
retryCount++;
if (retryCount >= 5)
{
log.LogError($"Error {ex.message} happened, {retryCount} attempt.");
throw;
}
else
log.LogInformation($"Error {ex.message} happened, {
}