How to Connect Azure Event Hubs in Microsoft Fabric

Connect Azure Event Hubs in Microsoft Fabric: In the ever-evolving landscape of real-time analytics, Microsoft Fabric emerges as a powerful ally, seamlessly integrating with Azure Event Hubs to unlock the potential of streaming data. In this blog post, we will delve into the step-by-step process of connecting Azure Event Hubs in Microsoft Fabric for a happy path towards real-time analytics.

Real-Time Analytics in Microsoft Fabric: A Quick Recap

Before we dive into the technical details, let’s quickly recap the possibilities of real-time analytics in Microsoft Fabric. The end-to-end workflow showcased in the blog provides a visual representation of how Microsoft Fabric facilitates real-time analytics scenarios. Now, let’s explore how we can connect data from an existing Azure Event Hub to further enhance this real-time analytics journey.

Loading Data from Azure Event Hub to Lakehouse: A Seamless Process


  1. An existing Azure Event Hub.
  2. A new consumer group (avoid using an existing one to prevent disruptions).
  3. Fabric Workspace.

Note: Adding a consumer group is available only in the Standard Tier, not in the Basic Tier.

How do I learn Power Query and Power Pivot?

Decoding Data Platforms: Microsoft Fabric vs. Databricks Lakehouse vs. Azure

Connecting Azure Event Hub to Microsoft Fabric: Step-by-Step Guide

  1. Create a Shared Access Policy on the Event Hub:
    • Generate a new Shared Access Policy on the Event Hub with the manage option enabled.
    • Note down the SAS Policy name and the Primary Key for later use in Microsoft Fabric.
  2. Create a Data Connection in Microsoft Fabric:
    • Open the settings toggle in the menu bar (top right) and select “Manage Connection.”
    • Search for “Event Hub” and provide the necessary information:
  3. Create Eventstream in Microsoft Fabric:
    • Access the Synapse Real-Time Analytics Experience in the left bottom corner of your Microsoft Fabric environment.
    • Ensure you have a Microsoft Fabric or Power BI Premium capacity assigned to this workspace.
    • Select “NEW” and choose “Eventstream.”
    • Define a name for the Eventstream and click on create.
  4. Create Eventstream Source:
    • Connect the source, which is the connection to the Azure Event Hub.
    • Provide source information such as source name, cloud connection, data format, and consumer group.
    • Click on “Create” to set up the source of your Eventstream.
  5. Create Eventstream Destination (Lakehouse):
    • Choose or create a Lakehouse as the destination for the Eventstream.
    • Configure the Lakehouse connection by providing destination name, workspace, Lakehouse, Delta table, and data format.
    • Utilize the Event Processor for data transformation and preview.
    • Click on “Create” to finalize the destination setup.

Verification and Exploration:

Once the Eventstream is set up successfully, explore the ingested data in your Lakehouse. Navigate through the Microsoft Fabric environment to verify the streaming data and its correct ingestion into the destination. Alternatively, switch to SQL Endpoint mode for a more detailed exploration using TSQL commands.


In just a few steps, you’ve connected Azure Event Hubs in Microsoft Fabric, paving the way for real-time analytics. The seamless integration between these services empowers you to harness the power of streaming data for immediate insights. As you navigate through the Microsoft Fabric environment, explore the possibilities of data transformation, real-time analytics, and the ease of setting up a comprehensive solution in a matter of minutes.

External Links:

For additional information and in-depth exploration, refer to the following external resources:

How do I learn Power Query and Power Pivot?


1. Can I use an existing consumer group for my Azure Event Hub?

  • It’s recommended to create a new consumer group to avoid disruptions in your existing environment.

2. What is the advantage of adding a consumer group in the Standard Tier?

  • The Standard Tier allows the addition of a consumer group, a crucial feature not available in the Basic Tier.

3. How long does it take to set up the entire Eventstream process?

  • Setting up the Eventstream, connecting the source and destination, usually takes around 20 minutes due to the automated deployment process in Microsoft Fabric.

4. Can I change the data format if the preview does not display the data correctly?

  • Yes, you can easily change the data format to csv or avro if the data preview does not align with your expectations.

Embark on your real-time analytics journey with Microsoft Fabric and Azure Event Hubs, where data flows seamlessly, insights are immediate, and the possibilities are endless!