0
votes

I'm trying to understand why "It is strongly recommended that you use an Event Grid Trigger when triggering an Azure Function with Event Grid" vs using a generic WebHook. (i.e. the called out note from the MS documentation: https://docs.microsoft.com/en-us/azure/event-grid/receive-events)

The only specific thing I can see from the link is the info about how "endpoint validation is handled for you" when using Event Grid Triggers.

I'm working on a project where currently every Event Grid subscription is set up as a WebHook (despite the majority of the endpoints pointing to Azure Functions). So I'm trying to understand if I should just follow the "norm" and add a new subscription as a WebHook, or if there is good reason to go with an EventGridTrigger instead.

1

1 Answers

0
votes

Why the doc strongly recommended you to use Event Grid Trigger should be only because validation logic built in the preprocessor of the EventGridTrigger.

If you use Generic webhook, you will use more code than eventgridtrigger. Eventgridtrigger only need to input the eventgrid as the paramter. But generic webhook need more operations.

Use generic webhook is ok.