Skip to content

Commit 50f0648

Browse files
committed
updated event handler articles
1 parent 49b094e commit 50f0648

8 files changed

+49
-67
lines changed

articles/event-grid/event-handlers.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ ms.author: spelluru
1111
---
1212

1313
# 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.
1415

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
1717
Here are the supported event handlers:
1818

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.
2020
- [Azure functions](handler-functions.md)
2121
- [Event hubs](handler-event-hubs.md)
2222
- [Relay hybrid connections](handler-relay-hybrid-connections.md)
2323
- [Service Bus queues and topics](handler-service-bus.md)
2424
- [Storage queues](handler-storage-queues.md)
2525

2626
## Next steps
27-
28-
* For an introduction to Event Grid, see [About Event Grid](overview.md).
29-
* To quickly get started using Event Grid, see [Create and route custom events with Azure Event Grid](custom-event-quickstart.md).
27+
- For an introduction to Event Grid, see [About Event Grid](overview.md).

articles/event-grid/handler-event-hubs.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,31 @@ ms.date: 05/11/2020
1010
ms.author: spelluru
1111
---
1212

13-
# Event hub as an event handler for Event Grid events
13+
# Event hub as an event handler for Azure Event Grid events
1414
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.
1515

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.
1717

1818
## Examples
19+
See the following examples:
1920

2021
|Title |Description |
2122
|---------|---------|
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. |
2425

2526
## 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:
2728

2829
| Property name | Description |
2930
| ------------- | ----------- |
3031
| aeg-subscription-name | Name of event subscription. |
31-
| aeg-delivery-count | Number of attempts made for the event. Example: "1" |
32-
| aeg-event-type | Event type. Example: "Microsoft.Storage.blobCreated" |
33-
| 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> |
3536
| aeg-output-event-id | ID of the Event Grid event. |
3637

3738

3839
## 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.

articles/event-grid/handler-functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.author: spelluru
1414

1515
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.
1616

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.
1818

1919
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.
2020

@@ -25,8 +25,8 @@ For more information, see [Event Grid trigger for Azure Functions](../azure-func
2525
| [Quickstart: Handle events with function](custom-event-to-function.md) | Sends a custom event to a function for processing. |
2626
| [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. |
2727
| [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. |
2929

3030

3131
## 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.

articles/event-grid/handler-relay-hybrid-connections.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ ms.author: spelluru
1111
---
1212

1313
# 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.
1517

1618
## Tutorials
19+
See the following tutorial for an example of using an Azure Relay hybrid connection as an event handler.
1720

1821
|Title |Description |
1922
|---------|---------|
2023
| [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. |
2124

2225
## 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.

articles/event-grid/handler-service-bus.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@ ms.author: spelluru
1313
# Service Bus queues and topics as event handlers for Azure Event Grid events
1414
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.
1515

16+
You can use a Service queue or topic as a handler for events from Event Grid.
1617

1718
## Service Bus queues
1819
You can route events in Event Grid directly to Service Bus queues for use in buffering or command & control scenarios in enterprise applications.
1920

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.
2122

2223
### Using CLI to add a Service Bus queue handler
2324

2425
For Azure CLI, the following example subscribes and connects an event grid topic to a Service Bus queue:
2526

2627
```azurecli-interactive
27-
# If you haven't already installed the extension, do it now.
28-
# This extension is required for preview features.
29-
az extension add --name eventgrid
30-
3128
az eventgrid event-subscription create \
3229
--name <my-event-subscription> \
3330
--source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 \
@@ -37,19 +34,15 @@ az eventgrid event-subscription create \
3734

3835
## Service Bus topics
3936

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.
4138

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.
4340

4441
### Using CLI to add a Service Bus topic handler
4542

4643
For Azure CLI, the following example subscribes and connects an event grid topic to a Service Bus queue:
4744

4845
```azurecli-interactive
49-
# If you haven't already installed the extension, do it now.
50-
# This extension is required for preview features.
51-
az extension add --name eventgrid
52-
5346
az eventgrid event-subscription create \
5447
--name <my-event-subscription> \
5548
--source-resource-id /subscriptions/{SubID}/resourceGroups/{RG}/providers/Microsoft.EventGrid/topics/topic1 \
@@ -58,23 +51,20 @@ az eventgrid event-subscription create \
5851
```
5952

6053
## Message properties
61-
Set the following message properties when sending events as messages to a Service Bus endpoint.
54+
If you use a **Service Bus topic or queue** as an event handler for events from Event Grid, set the following message headers:
6255

6356
| Property name | Description |
6457
| ------------- | ----------- |
6558
| aeg-subscription-name | Name of event subscription. |
66-
| aeg-delivery-count | Number of attempts made for the event. Example: "1" |
67-
| aeg-event-type | Event type. Example: "Microsoft.Storage.blobCreated" |
68-
| 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> |
7163

7264
## 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**.
7466

7567
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.
7668

7769
## 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.

articles/event-grid/handler-storage-queues.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ An event handler is the place where the event is sent. The handler takes some fu
1616
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.
1717

1818
## Examples
19+
See the following tutorial for an example of using Queue storage as an event handler.
1920

2021
|Title |Description |
2122
|---------|---------|
2223
| [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. |
2324

2425
## 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

Comments
 (0)