Event handlers in Azure Event Grid

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.

This article provides links to content for each event handler.

Azure Automation

Use Azure Automation to process events with automated runbooks.

Title Description
Tutorial: Azure Automation with Event Grid and Microsoft Teams Create a virtual machine, which sends an event. The event triggers an Automation runbook that tags the virtual machine, and triggers a message that is sent to a Microsoft Teams channel.

Azure Functions

Use Azure Functions for serverless response to events.

When using Azure Functions 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.

Title Description
Event Grid trigger for Azure Functions Overview of using the Event Grid trigger in Functions.
Tutorial: automate resizing uploaded images using Event Grid 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.
Tutorial: stream big data into a data warehouse 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.
Tutorial: Azure Service Bus to Azure Event Grid integration examples Event Grid sends messages from Service Bus topic to function app and logic app.

Event Hubs

Use Event Hubs when your solution gets events faster than it can process the events. Your application processes the events from Event Hubs at it own schedule. You can scale your event processing to handle the incoming events.

Event Hubs can act as either an event source or event handler. The following article shows how to use Event Hubs as a handler.

Title Description
Quickstart: route custom events to Azure Event Hubs with Azure CLI and Event Grid Sends a custom event to an event hub for processing by an application.
Resource Manager template: custom topic and Event Hubs endpoint A Resource Manager template that creates a subscription for a custom topic. It sends events to an Azure Event Hubs.

For examples of Event Hubs as a source, see Event Hubs source.

Hybrid Connections

Use Azure Relay Hybrid Connections to send events to applications that are within an enterprise network and don't have a publicly accessible endpoint.

Title Description
Tutorial: send events to hybrid connection Sends a custom event to an existing hybrid connection for processing by a listener application.

Logic Apps

Use Logic Apps to automate business processes for responding to events.

Title Description
Tutorial: monitor virtual machine changes with Azure Event Grid and Logic Apps A logic app monitors changes to a virtual machine and sends emails about those changes.
Tutorial: send email notifications about Azure IoT Hub events using Logic Apps A logic app sends a notification email every time a device is added to your IoT hub.
Tutorial: Azure Service Bus to Azure Event Grid integration examples Event Grid sends messages from Service Bus topic to function app and logic app.

Queue Storage

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.

Title Description
Quickstart: route custom events to Azure Queue storage with Azure CLI and Event Grid Describes how to send custom events to a Queue storage.

WebHooks

Use webhooks for customizable endpoints that respond to events.

Title Description
Quickstart: create and route custom events with - Azure CLI, PowerShell, and portal. Shows how to send custom events to a WebHook.
Quickstart: route Blob storage events to a custom web endpoint with - Azure CLI, PowerShell, and portal. Shows how to send blob storage events to a WebHook.
Quickstart: send container registry events Shows how to use Azure CLI to send Container Registry events.
Overview: receive events to an HTTP endpoint Describes how to validate an HTTP endpoint to receive events from an Event Subscription, and receive and deserialize events.

Next steps