Cloud service · Azure · Updated

Event Grid - Azure Event Grid is a managed publish-subscribe service for distributing events over HTTP and exchanging MQTT messages between devices, applications, and cloud services.

In short

Event Grid connects event producers to independent consumers through filtering, routing, and push or pull delivery. It supports Azure resource events, custom application events, partner events, and MQTT messaging, with different capabilities available through its Basic and Standard tiers.

Cloud Services Hub →

9 key features of Event Grid

01
Azure, application, and partner event sources

Subscribe to supported Azure resource events through system topics, publish application events to custom or namespace topics, and consume supported partner events. Select the topic type that matches the publisher rather than treating all Event Grid resources as interchangeable.

02
Subscription filtering and fan-out

Create independent event subscriptions so several consumers can react to one event. Use the filtering capabilities available for the selected topic and delivery model to reduce unnecessary processing and separate business workflows.

03
HTTP push delivery

Deliver events to supported Azure handlers or webhook endpoints without building a polling loop. Basic resources and Standard namespace topics have different destination support, so validate the intended handler before choosing a tier.

04
HTTP pull delivery

Consume events from Standard namespace topics at a rate controlled by the application. Workers acknowledge completed events and manage event locks or release events when processing needs to be retried.

05
Managed MQTT broker

Connect MQTT 3.1.1 and MQTT 5 clients using native MQTT or WebSockets. Topic spaces, client groups, and permission bindings let engineers control publishing and subscription access without operating broker servers.

06
MQTT subscription and state capabilities

Use retained messages to provide newly subscribing clients with the latest retained state, and shared subscriptions to distribute processing among subscribers. MQTT 5 subscription identifiers let applications identify the matching subscription context without relying solely on topic-string parsing.

07
CloudEvents interoperability

Use CloudEvents 1.0 to standardize event metadata across applications and platforms. Namespace topics use CloudEvents, while Basic topics offer additional schema options.

08
Retry and dead-letter handling

Push delivery retries eligible failures according to the applicable delivery policy. Configure supported Blob Storage dead-lettering and implement idempotency because retries can produce duplicate deliveries and not every failure is retried indefinitely.

09
Identity and operational controls

Use role-based access control, Microsoft Entra authentication, and managed identities where supported by the selected operation and destination. Monitor service metrics and diagnostic logs, and size Standard namespace throughput units for expected connections and message traffic.

Where Event Grid is used

  1. 01
    Process newly uploaded files

    Subscribe to Blob Storage creation events and invoke a function to validate, transform, or index each file. Filter by container or blob subject and make processing safe to repeat for the same object.

  2. 02
    Distribute business-domain events

    Publish events such as OrderCreated to a custom or namespace topic so billing, fulfillment, and reporting can subscribe independently. Keep consumers decoupled by publishing facts rather than encoding a destination-specific command.

  3. 03
    Connect devices and cloud applications

    Use the MQTT broker for telemetry, state updates, and application-to-device messaging. Route selected MQTT messages into cloud processing while restricting client access to authorized topic patterns.

  4. 04
    Automate resource operations

    React to supported Azure resource lifecycle or service events with Functions or Logic Apps. For example, trigger an operational workflow when a Key Vault certificate is approaching expiry.

  5. 05
    Run consumer-controlled background processing

    Use namespace pull delivery for workers that need to control concurrency or cannot accept inbound webhook calls. Scale workers against the available backlog and acknowledge only after processing succeeds.

  6. 06
    Integrate partner business events

    Receive events from supported SaaS partners and route them to internal processing services. For example, distribute Stripe payment events to fulfillment and reconciliation consumers without operating the public webhook ingestion layer yourself.

How Event Grid is priced

Basic tier consumption pricing

Basic event distribution is billed by metered operations, including applicable publishing and delivery operations, with a monthly free allowance under the published pricing terms. Event size, subscriber fan-out, and delivery retries can affect billable usage; consult the pricing definition rather than estimating cost from published event count alone.

Standard namespace capacity and usage pricing

Standard namespaces are billed for provisioned throughput-unit capacity and applicable metered messaging or event operations. Capacity charges can apply while a namespace is idle, so size throughput units against connection counts, ingress, egress, and processing requirements.

Associated service and networking charges

Destination execution, dead-letter Blob Storage, monitoring data, private networking, and applicable data transfer are charged separately by the relevant services. Include Functions executions, Event Hubs or Service Bus capacity, and operational log retention in the end-to-end estimate.

Services Event Grid works with

A common architecture begins with an Azure service event or a custom application event and distributes it to several independent handlers. Blob Storage can announce a new object, Event Grid can filter by event type and subject, and Azure Functions can validate the object while Logic Apps starts a business workflow. Each consumer should handle duplicates and use the event identifier together with relevant business identifiers to avoid repeating side effects.

Introduce Service Bus when a Basic-tier subscription needs to hand work to queue-based processors. Use Event Hubs when downstream consumers require retained, partitioned streams for analytics or replay. These services add their own delivery and storage semantics; Event Grid remains the routing layer rather than replacing a transactional queue or event log.

For industrial and device workloads, Azure IoT Operations can connect edge MQTT messaging to the Event Grid namespace broker. Route selected cloud MQTT messages through namespace topics toward Event Hubs or supported webhook handlers. Across these patterns, choose the tier and destination combination explicitly, use managed identities where supported, and monitor delivery failures, consumer backlog, and dead-letter storage as part of the complete pipeline.

Azure Functions

Use an Event Grid trigger in Azure Functions to process events delivered through a supported Event Grid subscription. For example, a BlobCreated event can start a function that reads the blob and generates a thumbnail. Make the function idempotent and persist longer-running work before acknowledging successful receipt.

Logic Apps

Use Logic Apps to connect Event Grid events to workflow actions and enterprise connectors. For example, a Key Vault certificate-expiry event can create a service-management ticket and notify the certificate owner. Configure event filters so the workflow runs only for the required resource and event types.

Azure Blob Storage

Blob Storage can publish supported object lifecycle events through an Event Grid system topic and can also provide dead-letter storage for supported delivery configurations. For example, subscribe to new blobs under an incoming-data prefix and route them to a validation service. Treat the event as a notification and retrieve the actual object using appropriately authorized storage access.

Service Bus

Route Basic-tier Event Grid subscriptions to supported Service Bus queues or topics when downstream processing needs a durable work buffer. For example, place an order-created notification onto a queue so fulfillment workers can process it independently of the original publisher. Use managed identity delivery where supported and grant the identity the required Service Bus sender permissions.

Event Hubs

Send Event Grid events to Event Hubs when downstream analytics needs a partitioned stream with retention and replay. For example, route MQTT telemetry through a namespace topic to an event hub, then let analytics consumers read the stream at their own pace. Select partitioning and retention settings in Event Hubs rather than assuming Event Grid supplies event-log semantics.

Azure IoT Operations

Connect the Azure IoT Operations edge MQTT broker to the Event Grid cloud MQTT broker through a configured MQTT bridge or data-flow path. For example, forward selected factory telemetry topics to the cloud while keeping local device communications on the edge. Plan topic mapping, credentials, authorization, and behavior during interrupted cloud connectivity.

API Management

Event Grid routes API Management events to downstream handlers. A subscription can react when a user or product is created, or when a supported gateway event occurs, such as a backend circuit breaker opening.

App Service

Event Grid receives App Service events such as deployment slot swaps and backup or restore completion. A slot-swap event can trigger a workflow that runs checks against the new production deployment.

Automation

Event Grid can start an Automation runbook through its webhook and handles subscription validation automatically for that endpoint. A resource creation event can start a runbook that checks whether the new resource has the required tags.

Azure App Configuration

Event Grid receives notifications when App Configuration key-values are modified or deleted. A subscription can use a change to a particular key to start a configuration validation workflow.

Alternatives to Event Grid in other clouds

AWS

Amazon EventBridgeAmazon EventBridge

Amazon EventBridge and Azure Event Grid route events from cloud services, applications, and third-party providers to independent consumers. EventBridge’s Custom Event Bus supports ordered delivery and charges by published and delivered data volume; Event Grid doesn’t guarantee HTTP delivery order and bills Basic by operation and Standard by provisioned capacity plus operations.

Compare fact by fact
Event GridAmazon EventBridge
Delivery orderHTTP: no ordering guaranteeCustom Event Bus: ordered delivery
Event routing chargesBasic: ops; Standard: capacity + opsPublished and delivered data volume
Amazon Simple Notification Service (Amazon SNS)Amazon Simple Notification Service (Amazon SNS)

Amazon SNS and Azure Event Grid are managed publish/subscribe services that route messages or events to multiple subscribers and let each subscription filter what it receives. SNS pushes messages to subscribers and supports ordered delivery from FIFO topics to SQS FIFO queues; Event Grid offers HTTP push and Standard-tier HTTP pull, but does not guarantee ordering for HTTP delivery.

Compare fact by fact
Event GridAmazon Simple Notification Service (Amazon SNS)
Topic deliveryPush; pull on Standard namespacesPush
Delivery orderingNo ordering guarantee for HTTPFIFO topics to SQS FIFO queues
Billing modelBasic: usage; Standard: capacity + usageUsage-based
AWS IoT CoreAWS IoT Core

AWS IoT Core and Azure Event Grid both provide managed MQTT messaging over native MQTT and WebSockets and route device messages for cloud processing. AWS IoT Core meters connection time and messages, while Event Grid's Standard tier bills for provisioned capacity and applicable messaging operations.

Compare fact by fact
Event GridAWS IoT Core
MQTT billingCapacity plus metered operationsConnection minutes and messages
Device stateRetained MQTT messages for subscribersDevice Shadow syncs desired state
Device message routingMQTT-to-HTTP event distributionSQL-like rules filter and transform
Compared Nov 2026

What is Event Grid

2 min read

Azure Event Grid distributes notifications and messages without requiring publishers to track individual consumers. A publisher announces a state change, such as a file upload or an order creation, and Event Grid routes the event to interested subscribers. Each subscription can select relevant events, allowing multiple applications to react independently to the same occurrence. Event Grid also provides an MQTT broker for communication between devices and applications.

Choose the resource model before designing the integration. The Basic tier uses system topics for supported Azure service events, custom topics for application events, partner topics for supported external publishers, and domains for managing large groups of related topics. These resources provide push delivery. The Standard tier uses namespaces and supports MQTT messaging and HTTP namespace topics with push and pull consumption. Supported destinations, authentication methods, filtering options, and limits differ between the two resource models.

For HTTP integrations, publishers send structured events and consumers process their event data and context. CloudEvents 1.0 provides a standard event envelope and is the event schema used by namespace topics. Basic topics also support the Event Grid event schema and supported custom-schema configurations. Keep events focused on the occurrence: include an identifier, event type, timestamp, and enough business context for routing and processing. Store large documents or binary objects separately and include a reference rather than embedding the entire object.

With push delivery, Event Grid calls a supported Azure destination or webhook. Configure event filters to avoid invoking consumers for unrelated events. Webhook implementations must satisfy the applicable endpoint-validation requirements and return successful responses only after accepting responsibility for processing. Delivery uses retries, but duplicate events can occur and HTTP delivery does not guarantee ordering. Build idempotent handlers and configure supported dead-letter storage so unsuccessful deliveries can be investigated and replayed.

With namespace pull delivery, consumers request events when they have processing capacity. Applications acknowledge successfully processed events and use release, rejection, and lock-management operations as appropriate. This model suits workers that cannot expose inbound endpoints or that need explicit control over processing concurrency. Event retention is bounded, so monitor backlog growth and ensure consumers can recover before events expire.

The namespace MQTT broker supports MQTT 3.1.1 and MQTT 5 clients, including connections over WebSockets. Define topic spaces and authorization rules that restrict which clients can publish or subscribe to particular topic patterns. MQTT routing can forward messages into an HTTP event-distribution pipeline for cloud processing. MQTT session ordering behavior is distinct from HTTP event-delivery behavior and should not be treated as a general ordering guarantee across the service.

For production deployments, use Microsoft Entra ID and managed identities where supported, apply least-privilege roles, and evaluate network controls for the selected resource type. Monitor publish failures, delivery failures, dead-letter activity, consumer backlog, and namespace capacity. Use Service Bus when the primary requirement is transactional work messaging, and Event Hubs when consumers need a partitioned event log with replay; Event Grid can route events into either service.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.