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

November 20, 2023 by Anshul Sharma

As part of the One logical copy effort, we’re excited to announce that you can now enable availability of KQL Database in Delta Lake format. Delta Lake  is the unified data lake table format chosen to achieve seamless data access across all compute engines in Microsoft Fabric. The data streamed into KQL Database is stored … Continue reading “Announcing Delta Lake support in Real-Time Analytics KQL Database”

November 16, 2023 by Tzvia Gitlin Troyna

In the fast-paced world of data analytics, real-time insights are the driving force behind informed decisions and competitive advantage. The long-awaited moment is here: Real-Time Analytics in Microsoft Fabric has reached general availability (GA), unveiling a wide range of transformative features and capabilities to empower data-driven professionals across diverse domains. Whether you’re an experienced business … Continue reading “Announcing General Availability: Explore the Capabilities of Real-Time Analytics in Microsoft Fabric”