| title | Send MQTT events to Microsoft Fabric via Event Hubs |
|---|---|
| description | Shows you how to use Event Grid to send events from MQTT clients to Microsoft Fabric via Azure Event Hubs. |
| ms.topic | how-to |
| ms.date | 04/30/2025 |
| author | Connected-Seth |
| ms.author | seshanmugam |
| ms.subservice | mqtt |
This article shows you how to use Azure Event Grid to send events from MQTT clients to Microsoft Fabric eventstream.
- Create an Azure Event Grid namespace.
- Create a namespace topic in the namespace that receives events from MQTT clients.
- Enable managed identity on the Event Grid namespace.
- Enable MQTT and routing on the Event Grid namespace, if you want to receive Message Queuing Telemetry Transport (MQTT) data.
- Create an event stream in Microsoft Fabric.
- Follow steps from the article: QuickStart: Publish and subscribe to MQTT messages on Event Grid Namespace with Azure portal to:
- Create Event Grid namespace in the Azure portal.
- Create a namespace topic.
- Enable managed identity for the namespace.
- Enable MQTT broker for the Event Grid namespace.
- Configure routing for the Event Grid namespace.
- Create clients, topic space, and permission bindings.
- Use MQTTX tool to send a few test events or messages.
- In Microsoft Fabric, follow the steps from the article: Add Azure Event Grid Namespace source to an eventstream
- Create workspace in Fabric.
- Create an eventstream.
- Create an Azure Event Grid namespace datasource.
- Preview Data in the eventstream.
To learn how to add other sources to an eventstream, see the following article: Add and manage an event source in an eventstream.