Event grid with function apps, delivery or error

Eugeniu Nicolaescu 1 Reputation point
2021-03-04T17:00:31.45+00:00

I have an event grid and I have a subscription for certain events to be delivered to a function app as an "EventGridTrigger". I have read this page https://learn.microsoft.com/en-us/azure/event-grid/delivery-and-retry#message-delivery-status but I have some doubts about error handling

There are certain HTTP status codes that will cause the grid to dead-letter the event or to retry delivery, but I haven't found exactly how this works with function apps. When the event grid sends a new event to a function app and the function app instance is successfully started, is the message considered successfully delivered then? Or is the message considered delivered when the function app successfully ends its execution? Imagine that for whatever reason I want the message to be "rejected" so that the event grid retries the delivery some time later, how would I do that?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,303 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,126 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
319 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-03-05T06:31:28.787+00:00

    @Eugeniu Nicolaescu Looks like there is an open issue to address this feedback. In the meantime, the recommended approach is to use a HTTP Triggered Function instead. There is a feedback request for the same that you could up vote for it gain more traction.

    This doc about receiving events to an HTTP endpoint covers how this can be setup for the same.

    1 person found this answer helpful.
    0 comments No comments

  2. Roman Kiss 2,241 Reputation points
    2021-03-05T07:11:43.737+00:00

    Hi @Eugeniu Nicolaescu

    have a look at my answer on the SO

    Thanks
    Roman

    1 person found this answer helpful.
    0 comments No comments