You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/handler-functions.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
-
title: Use a function in Azure as an event handler for Azure Event Grid events
2
+
title: Function as event handler for Azure Event Grid events
3
3
description: Describes how you can use functions created in and hosted by Azure Functions as event handlers for Event Grid events.
4
-
ms.topic: conceptual
5
-
ms.date: 08/31/2023
4
+
ms.topic: concept-article
5
+
ms.date: 01/21/2025
6
+
# Customer intent: I want to know details about using an Azure function as an event handler for Azure Event Grid events.
6
7
---
7
8
8
9
# Use a function as an event handler for Event Grid events
@@ -12,8 +13,8 @@ An event handler is the place where the event is sent. The handler takes an acti
12
13
13
14
To use a function in Azure as a handler for events, follow one of these approaches:
14
15
15
-
- Use [Event Grid trigger](../azure-functions/functions-bindings-event-grid-trigger.md). Specify **Azure Function** as the **endpoint type**. Then, specify the function app and the function that will handle events.
16
-
- Use [HTTP trigger](../azure-functions/functions-bindings-http-webhook.md). Specify **Web Hook** as the **endpoint type**. Then, specify the URL for the function that will handle events.
16
+
- Use [Event Grid trigger](../azure-functions/functions-bindings-event-grid-trigger.md). Specify **Azure Function** as the **endpoint type**. Then, specify the function app and the function that will handle events.
17
+
- Use [HTTP trigger](../azure-functions/functions-bindings-http-webhook.md). Specify **Web Hook** as the **endpoint type**. Then, specify the URL for the function that will handle events.
17
18
18
19
We recommend that you use the first approach (Event Grid trigger) as it has the following advantages over the second approach:
19
20
- Event Grid automatically validates Event Grid triggers. With generic HTTP triggers, you must implement the [validation response](end-point-validation-event-grid-events-schema.md) yourself.
@@ -28,7 +29,7 @@ We recommend that you use the first approach (Event Grid trigger) as it has the
28
29
|Title |Description |
29
30
|---------|---------|
30
31
|[Quickstart: Handle events with function](custom-event-to-function.md)| Sends a custom event to a function for processing. |
31
-
|[Tutorial: stream big data into a data warehouse](event-hubs-integration.md)| When Event Hubs creates a Capture file, Event Grid sends an event to a function app. The app retrieves the Capture file and migrates data to a data warehouse. |
32
+
|[Tutorial: stream big data into a data warehouse](event-hubs-integration.md)| When an event hub creates a Capture file, Event Grid sends an event to a function app. The app retrieves the Capture file and migrates data to a data warehouse. |
32
33
|[Tutorial: Azure Service Bus to Azure Event Grid integration examples](../service-bus-messaging/service-bus-to-event-grid-integration-example.md?toc=%2fazure%2fevent-grid%2ftoc.json)| Event Grid sends messages from Service Bus topic to a function app and a logic app. |
33
34
34
35
## REST example (for PUT)
@@ -78,5 +79,5 @@ You can use the [New-AzEventGridSubscription](/powershell/module/az.eventgrid/ne
78
79
> [!NOTE]
79
80
> When you use Event Grid Trigger, the Event Grid service fetches the client secret for the target Azure function, and uses it to deliver events to the Azure function. If you protect your Azure function with a Microsoft Entra application, you have to take the generic web hook approach and use the HTTP Trigger.
80
81
81
-
## Next steps
82
+
## Related content
82
83
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
0 commit comments