Microsoft Fabric Updates Blog

Stream Azure IoT Hub Data into Fabric Eventstream for Email Alerting

Azure IoT Hub is a managed service hosted in the cloud that acts as a central message hub for communication between IoT applications and their connected devices. It allows you to connect, monitor, and manage millions of devices reliably and securely, making it easier to build scalable IoT solutions. But what if you could take your Azure IoT Hub data to the next level by effortlessly ingesting and transforming it? That’s where Fabric Eventstream comes in!

What’s is Eventstream

Fabric Eventstream is a cutting-edge solution designed to seamlessly ingest and transform real-time data streams before they reach various Fabric destinations such as Lakehouse, KQL Database, and Reflex. Acting as a powerful intermediary layer, it leverages powerful temporal functions and handles data streams with sub-second latency.

Stream IoT Data into Eventstream

If you already have an Azure IoT Hub running in the cloud, follow the steps to start ingesting IoT data into Eventstream. You can also watch the demo video below to see these steps in action.

Here’s the demo:

Stream real-time data from your Azure IoT Hub to Reflex using Fabric Eventstream

Step1: Create an eventstream

Switch your Power BI experience to “Real-time Analytics” and select the “Eventstream” button to create a new one. You can find full documentation on (how to create an Eventstream) here.

Name your Eventstream “my-eventstream” and select “Create.”

Step2: Add an Azure IoT Hub source

In the Eventstream canvas, expand the “New source” drop-down menu and choose “Azure IoT Hub”.

Enter your Azure IoT Hub details to complete the configuration:

  • Source name: Name your eventstream’s source e.g., “iothub-source”.
  • Cloud connection: Select an existing cloud connection that links your Azure IoT Hub to Microsoft Fabric. If you don’t have one, follow this guide (Build a real-time dashboard by streaming events from Azure IoT Hub to Microsoft Fabric) to add a new cloud connection.
  • Data format. Choose the data format (AVRO, JSON, or CSV) that you prefer for ingesting IoT data into your eventstream.
  • Consumer group. Choose a consumer group for your Azure IoT Hub or keep it as “$Default”.

Step3: Add a Reflex destination

In the Eventstream canvas, expand the “New destination” drop-down menu and choose “Reflex”.

Name your eventstream’s destination e.g., “reflex-destination”, select a workspace, and choose your reflex.

Step4: Create Email Alerts in Reflex

Select the Reflex destination and click “Open item” in the bottom pane. This will open your reflex is a new tab.

Then you can start creating email alerts to act on your IoT data. For comprehensive instructions on creating triggers in design mode, you can refer to the detailed documentation here (Create Data Activator triggers in design mode).

Conclusion

Fabric Eventstream offers the capacity to capture, transform, and seamlessly route your IoT data streams to multiple Fabric destinations. Don’t let your Azure IoT Hub data go to waste—leverage the power of Fabric Eventstream to turn it into a valuable asset for your team. Start your journey towards smarter decision-making and unlock the full potential of your IoT data!

Related blog posts

Stream Azure IoT Hub Data into Fabric Eventstream for Email Alerting

April 5, 2024 by Brad Watts

As part of the consumption model for KQL Database and Eventhouse, we are enabling public preview for Kusto Cache consumption. This change is scheduled to start rolling out on April 12. This means that you will start seeing billable consumption of the OneLake Cache Data Stored meter from the KQL Database and Eventhouse artifacts. For … Continue reading “Announcement: Kusto Cache Storage Public”

March 21, 2024 by Guy Reginiano

Users of Azure SQL can now take advantage of an enhanced monitoring solution for their databases and leverage integration with Microsoft Fabric. With the introduction of the new Database Watcher for Azure SQL (preview), users gain access to advanced monitoring capabilities. Through integration with Microsoft Fabric, they can effortlessly stream, store, and analyze monitoring data … Continue reading “Fabric Real-Time Analytics Integrates with Newly Announced Database Watcher for Azure SQL”