Event Grid
Event Grid requires a card and includes 100,000 free Basic operations a month, charges past that, and bills an idle Standard namespace by the hour for throughput units.
Azure Event Grid routes events between Azure services, your own apps, and partner systems, and it also runs an MQTT broker for IoT clients.
Is it a fit?
Good fit
Use Event Grid to route events from Azure services or your own apps to webhooks and functions, or to run an MQTT broker for devices on Azure.
- event-driven Azure apps
- routing system events to functions
- MQTT device messaging on Azure
Not a fit
Avoid it if you do not want an Azure subscription or if you need a plain work queue that consumers pull from on another cloud.
- you do not want an Azure subscription
- you need a free tier without a card
- you run mostly outside Azure
You set Event Grid up in the Azure portal or the Azure CLI. You create a topic or a namespace, add subscriptions, and publish over HTTP or MQTT. It suits teams that build event-driven apps on Azure. Azure sign-up asks for a phone number and a credit or debit card (not prepaid) to verify your identity. It may place a temporary one-dollar hold, and it does not charge you unless you move to pay-as-you-go.
What the free plan gives you
Event Grid has two tiers. The Basic tier is pay-per-use for events on custom topics, system topics, partner topics, and domains. It includes 100,000 operations per month for free.
The Standard tier uses an Event Grid namespace. It gives you an MQTT broker, plus push and pull delivery of events. Each month it includes 1,000,000 MQTT operations and 1,000,000 event operations for free. Operations are counted per 64 KB of data, so an event of 256 KB counts as 4 operations.
When you hit a limit
The pricing page lists no hard stop at the free amounts. You pay per million operations after them. In the reviewed view (US dollars, West US 2), the pricing page lists $0.60 per million Basic operations, $1 per million MQTT operations, and $0.60 per million event operations.
A Standard namespace has a second cost. You pre-purchase throughput units, and they are billed per hour per unit, at $0.04 in that same view. The free amounts cover operations only, so a namespace that sits idle can still cost money. You can choose up to 40 throughput units for each namespace. Each throughput unit allows 10,000 MQTT client connections.
Gotchas
- Event retention is free for 1 day on Basic. On a namespace topic it is free for 7 days. On Basic, event type matching and filtering on the start of the subject are free. Advanced payload filtering and subject-ends-with filtering count as operations.
- MQTT client connections have no extra charge, but connects, subscribes, unsubscribes, and inbound/outbound publishes are MQTT operations. Expired MQTT publishes and certain dropped persistent sessions also count.
- Standard bills one event operation per four TTL-dropped events. Ack/reject/release/renew operations are excluded unless a rejected event needs dead-lettering. MQTT enrichment and routing to Basic custom topics cost one operation per four messages; routing to namespace topics is free.
Alternatives in this atlas
- SNS: when you run on AWS and want topics that fan out to queues and functions.
- Pub/Sub: when you run on Google Cloud and want a managed publish and subscribe service.
- EMQX Serverless: when you only need an MQTT broker and want no Azure subscription.
Questions people ask
Is Azure Event Grid free?
Partly. The Basic tier includes 100,000 operations per month. A Standard namespace includes 1,000,000 MQTT operations and 1,000,000 event operations per month.
What counts as an operation in Event Grid?
On Basic, published events, advanced filtering, and delivery attempts count. Each operation covers up to 64 KB of data, so larger events count as several.
What is the difference between Basic and Standard Event Grid?
Basic publishes and subscribes to discrete events through topics and domains. Standard adds a namespace with an MQTT broker and pull delivery.
How to get started
- Sign in to the Azure portal with an Azure subscription.
- Search for Event Grid Topics, select Create, and fill in the subscription, resource group, a unique topic name, and a location.
- Create an endpoint for the events, such as a web app that shows messages.
- On the topic page, select Event Subscription, choose Web Hook as the endpoint type, and enter the endpoint URL.
- Send a sample event to the topic and check that the endpoint receives it.
Other free messaging options
Same category, safest first.