By default when a processing a message in an Azure Function v2, the function will be retried 10 times on error.
I actually want to reduce this but I can't find how to do it?
public static async Task Run([ServiceBusTrigger("%EventsTopicName%", "%EventsSubscriptionName%", Connection = "GetEventsConnectionString")]Message mySbMsg, ILogger log)
{
// Code to process a message
}