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/event-handlers.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,19 +11,17 @@ ms.author: spelluru
11
11
---
12
12
13
13
# Event handlers in Azure Event Grid
14
+
An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events. You can also use any webhook for handling events. The webhook doesn't need to be hosted in Azure to handle events. Event Grid only supports HTTPS webhook endpoints.
14
15
15
-
An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events. You can also use any WebHook for handling events. The WebHook doesn't need to be hosted in Azure to handle events. Event Grid only supports HTTPS WebHook endpoints.
16
-
16
+
## Supported event handlers
17
17
Here are the supported event handlers:
18
18
19
-
-[WebHooks](handler-webhooks.md). Azure Automation runbooks and Logic Apps are supported via webhooks.
19
+
-[Webhooks](handler-webhooks.md). Azure Automation runbooks and Logic Apps are supported via webhooks.
Copy file name to clipboardExpand all lines: articles/event-grid/handler-event-hubs.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,30 +10,31 @@ ms.date: 05/11/2020
10
10
ms.author: spelluru
11
11
---
12
12
13
-
# Event hub as an event handler for Event Grid events
13
+
# Event hub as an event handler for Azure Event Grid events
14
14
An event handler is the place where the event is sent. The handler takes an action to process the event. Several Azure services are automatically configured to handle events and **Azure Event Hubs** is one of them.
15
15
16
-
Use **Event Hubs** when your solution gets events faster than it can process the events. Then, your application can process events from Event Hubs at its own schedule. You can scale your event processing to handle the incoming events.
16
+
Use **Event Hubs** when your solution gets events from Event Grid faster than it can process the events. Once the events are in an event hub, your application can process events from the event hub at its own schedule. You can scale your event processing to handle the incoming events.
17
17
18
18
## Examples
19
+
See the following examples:
19
20
20
21
|Title |Description |
21
22
|---------|---------|
22
-
|[Quickstart: route custom events to Azure Event Hubs with Azure CLI and Event Grid](custom-event-to-eventhub.md)| Sends a custom event to an event hub for processing by an application. |
23
-
|[Resource Manager template: custom topic and Event Hubs endpoint](https://github.com/Azure/azure-quickstart-templates/tree/master/101-event-grid-event-hubs-handler)| A Resource Manager template that creates a subscription for a custom topic. It sends events to an Azure Event Hubs. |
23
+
|[Quickstart: Route custom events to Azure Event Hubs with Azure CLI](custom-event-to-eventhub.md)| Sends a custom event to an event hub for processing by an application. |
24
+
|[Resource Manager template: Create an Event Grid custom topic and send events to an event hub](https://github.com/Azure/azure-quickstart-templates/tree/master/101-event-grid-event-hubs-handler)| A Resource Manager template that creates a subscription for a custom topic. It sends events to an Azure Event Hubs. |
24
25
25
26
## Message properties
26
-
Set the following message headers when sending events as messages to an **event hub**.
27
+
If you use an **event hub** as an event handler for events from Event Grid, set the following message headers:
27
28
28
29
| Property name | Description |
29
30
| ------------- | ----------- |
30
31
| aeg-subscription-name | Name of event subscription. |
31
-
| aeg-delivery-count | Number of attempts made for the event.Example: "1" |
| aeg-metadata-version | Metadata version of the event.Example: "1". For **Event Grid event schema**, this property represents the metadata version and for **cloud event schema**, it represents the **spec version**. |
34
-
| aeg-data-version | Data version of the event.Example: "1". Default value: "". For **Event Grid event schema**, this property represents the data version and for **cloud event schema**, it doesn't apply. |
32
+
| aeg-delivery-count |<p>Number of attempts made for the event.</p> <p>Example: "1"</p>|
33
+
| aeg-event-type |<p>Type of the event.</p><p> Example: "Microsoft.Storage.blobCreated"</p>|
34
+
| aeg-metadata-version |<p>Metadata version of the event.</p> <p>Example: "1".</p><p> For **Event Grid event schema**, this property represents the metadata version and for **cloud event schema**, it represents the **spec version**. </p>|
35
+
| aeg-data-version |<p>Data version of the event.</p><p>Example: "1".</p><p>For **Event Grid event schema**, this property represents the data version and for **cloud event schema**, it doesn't apply.</p>|
35
36
| aeg-output-event-id | ID of the Event Grid event. |
36
37
37
38
38
39
## Next steps
39
-
For an introduction to Event Grid, see [About Event Grid](overview.md).
40
+
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
Copy file name to clipboardExpand all lines: articles/event-grid/handler-functions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.author: spelluru
14
14
15
15
An event handler is the place where the event is sent. The handler takes an action to process the event. Several Azure services are automatically configured to handle events and **Azure Functions** is one of them.
16
16
17
-
Use **Azure Functions**for serverless response to events. When using an Azure function as the handler, use the Event Grid trigger instead of generic HTTP triggers. Event Grid automatically validates Event Grid Function triggers. With generic HTTP triggers, you must implement the [validation response](webhook-event-delivery.md).
17
+
Use **Azure Functions**in a serverless architecture to respond to events from Event Grid. When using an Azure function as the handler, use the Event Grid trigger instead of the generic HTTP trigger. Event Grid automatically validates Event Grid triggers. With generic HTTP triggers, you must implement the [validation response](webhook-event-delivery.md) yourself.
18
18
19
19
For more information, see [Event Grid trigger for Azure Functions](../azure-functions/functions-bindings-event-grid.md) for an overview of using the Event Grid trigger in functions.
20
20
@@ -25,8 +25,8 @@ For more information, see [Event Grid trigger for Azure Functions](../azure-func
25
25
|[Quickstart: Handle events with function](custom-event-to-function.md)| Sends a custom event to a function for processing. |
26
26
|[Tutorial: automate resizing uploaded images using Event Grid](resize-images-on-storage-blob-upload-event.md)| Users upload images through web app to storage account. When a storage blob is created, Event Grid sends an event to the function app, which resizes the uploaded image. |
27
27
|[Tutorial: stream big data into a data warehouse](event-grid-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. |
28
-
|[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 function app and logic app. |
28
+
|[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. |
29
29
30
30
31
31
## Next steps
32
-
For an introduction to Event Grid, see [About Event Grid](overview.md).
32
+
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
Copy file name to clipboardExpand all lines: articles/event-grid/handler-relay-hybrid-connections.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,16 @@ ms.author: spelluru
11
11
---
12
12
13
13
# Relay Hybrid connection as an event handler for Azure Event Grid events
14
-
An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events and **Azure Relay** is one of them. Use Azure **Relay Hybrid Connections** to send events to applications that are within an enterprise network and don't have a publicly accessible endpoint.
14
+
An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events and **Azure Relay** is one of them.
15
+
16
+
Use Azure **Relay Hybrid Connections** to send events to applications that are within an enterprise network and don't have a publicly accessible endpoint.
15
17
16
18
## Tutorials
19
+
See the following tutorial for an example of using an Azure Relay hybrid connection as an event handler.
17
20
18
21
|Title |Description |
19
22
|---------|---------|
20
23
|[Tutorial: send events to hybrid connection](custom-event-to-hybrid-connection.md)| Sends a custom event to an existing hybrid connection for processing by a listener application. |
21
24
22
25
## Next steps
23
-
24
-
* For an introduction to Event Grid, see [About Event Grid](overview.md).
25
-
* To quickly get started using Event Grid, see [Create and route custom events with Azure Event Grid](custom-event-quickstart.md).
26
+
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
Copy file name to clipboardExpand all lines: articles/event-grid/handler-service-bus.md
+11-21Lines changed: 11 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,18 @@ ms.author: spelluru
13
13
# Service Bus queues and topics as event handlers for Azure Event Grid events
14
14
An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events and **Azure Service Bus** is one of them.
15
15
16
+
You can use a Service queue or topic as a handler for events from Event Grid.
16
17
17
18
## Service Bus queues
18
19
You can route events in Event Grid directly to Service Bus queues for use in buffering or command & control scenarios in enterprise applications.
19
20
20
-
In the Azure portal, while creating an event subscription, select "Service Bus Queue" as endpoint type and then click "select an endpoint" in order to choose a Service Bus queue.
21
+
In the Azure portal, while creating an event subscription, select **Service Bus Queue** as endpoint type and then click **select an endpoint** to choose a Service Bus queue.
21
22
22
23
### Using CLI to add a Service Bus queue handler
23
24
24
25
For Azure CLI, the following example subscribes and connects an event grid topic to a Service Bus queue:
25
26
26
27
```azurecli-interactive
27
-
# If you haven't already installed the extension, do it now.
28
-
# This extension is required for preview features.
@@ -37,19 +34,15 @@ az eventgrid event-subscription create \
37
34
38
35
## Service Bus topics
39
36
40
-
You can route events in Event Grid directly to Service Bus topics in order to handle Azure system events with Service Bus topics, or for command & control messaging scenarios.
37
+
You can route events in Event Grid directly to Service Bus topics to handle Azure system events with Service Bus topics, or for command & control messaging scenarios.
41
38
42
-
In the Azure portal, while creating an event subscription, select "Service Bus Topic" as endpoint type and then click "select and endpoint" in order to choose a Service Bus topic.
39
+
In the Azure portal, while creating an event subscription, select **Service Bus Topic** as endpoint type and then click **select and endpoint** to choose a Service Bus topic.
43
40
44
41
### Using CLI to add a Service Bus topic handler
45
42
46
43
For Azure CLI, the following example subscribes and connects an event grid topic to a Service Bus queue:
47
44
48
45
```azurecli-interactive
49
-
# If you haven't already installed the extension, do it now.
50
-
# This extension is required for preview features.
| aeg-metadata-version | Metadata version of the event. Example: "1". For **Event Grid event schema**, this property represents the metadata version and for **cloud event schema**, it represents the **spec version**. |
69
-
| aeg-data-version | Data version of the event. Example: "1". Default value: "". For **Event Grid event schema**, this property represents the data version and for **cloud event schema**, it doesn't apply. |
70
-
| aeg-output-event-id | ID of the Event Grid event. |
59
+
| aeg-delivery-count | <p>Number of attempts made for the event.</p> <p>Example: "1"</p> |
60
+
| aeg-event-type | <p>Type of the event.</p><p> Example: "Microsoft.Storage.blobCreated"</p> |
61
+
| aeg-metadata-version | <p>Metadata version of the event.</p> <p>Example: "1".</p><p> For **Event Grid event schema**, this property represents the metadata version and for **cloud event schema**, it represents the **spec version**. </p>|
62
+
| aeg-data-version | <p>Data version of the event.</p><p>Example: "1".</p><p>For **Event Grid event schema**, this property represents the data version and for **cloud event schema**, it doesn't apply.</p> |
71
63
72
64
## Message headers
73
-
When sending events to a Service Bus endpoint (queue or topic) as brokered messages, the `messageid` of the brokered message is the **event ID**.
65
+
When sending an event to a Service Bus queue or topic as a brokered message, the `messageid` of the brokered message is the **event ID**.
74
66
75
67
The event ID will be maintained across redelivery of the event so that you can avoid duplicate deliveries by turning on **duplicate detection** on the service bus entity. We recommend that you enable duration of the duplicate detection on the Service Bus entity to be either the time-to-live (TTL) of the event or max retry duration, whichever is longer.
76
68
77
69
## Next steps
78
-
79
-
* For an introduction to Event Grid, see [About Event Grid](overview.md).
80
-
* To quickly get started using Event Grid, see [Create and route custom events with Azure Event Grid](custom-event-quickstart.md).
70
+
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
Copy file name to clipboardExpand all lines: articles/event-grid/handler-storage-queues.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,11 @@ An event handler is the place where the event is sent. The handler takes some fu
16
16
Use **Queue Storage** to receive events that need to be pulled. You might use Queue storage when you have a long running process that takes too long to respond. By sending events to Queue storage, the app can pull and process events on its own schedule.
17
17
18
18
## Examples
19
+
See the following tutorial for an example of using Queue storage as an event handler.
19
20
20
21
|Title |Description |
21
22
|---------|---------|
22
23
|[Quickstart: route custom events to Azure Queue storage with Azure CLI and Event Grid](custom-event-to-queue-storage.md)| Describes how to send custom events to a Queue storage. |
23
24
24
25
## Next steps
25
-
26
-
* For an introduction to Event Grid, see [About Event Grid](overview.md).
27
-
* To quickly get started using Event Grid, see [Create and route custom events with Azure Event Grid](custom-event-quickstart.md).
26
+
See the [Event handlers](event-handlers.md) article for a list of supported event handlers.
0 commit comments