Warm tip: This article is reproduced from serverfault.com, please click

How to retry sending events from Azure Event Grid to Logic Apps

发布于 2020-12-01 11:45:26

I have an event grid which publishes a lot of events, and a logic app which needs to consume some of them. These events aren't guaranteed to be in order, and events which require another event to be processed first, might end up in the logic app prematurely, causing them to fail.
From the documentation, I can see that event grid supports a retry policy, with an increasing time interval. This would solve my problem.
However, it seems like the logic app in question, always acknowledges events from the event grid, even though the process is stopped early with the Terminate action in the failure state and with an error code.
From the logic app overview, the runs are shown as failed. But the event grid never attempts a retry, and seems to consider the events successful. What can I do to make the event grid retry failed logic app runs?

Questioner
Mikkel Olsen
Viewed
0
Frank Gong 2020-12-02 13:51:41

It seems that once the Azure logic app is triggered, the event in the Azure event grid is considered to be processed.

I think you can configure retry policy at the step where your Azure logic app failed, please refer to Retry policies.

enter image description here

Take the example of Httpaction:

You can click ··· in the upper right corner of the Http action, then click Settings, and select the type you want under Retry Policy

enter image description here