Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how to get events from an Azure Event Grid namespace into Fabric Real-Time hub.
Prerequisites
- Access to a workspace in the Fabric capacity license mode (or) the Trial license mode with Contributor or higher permissions.
- Enable managed identity on the Event Grid namespace.
- Enable MQTT and routing on the Event Grid namespace, if you want to receive Message Queueing Telemetry Transport (MQTT) data.
Get events from an Azure Event Grid namespace
You can get events from an Azure Event Grid namespace into Real-Time hub in one of the following ways:
Azure sources page
In Real-Time hub, select Azure sources on the left navigation menu. You can use the search box to the type your resource name or use filters (Source, Subscription, Resource group, Region) to search for your resource.
For Source at the top, select Azure Event Grid Namespace from the drop-down list.
For Subscription, select an Azure subscription that has the resource group with your Event Grid namespace.
For Resource group, select a resource group that has your Event Grid namespace.
For Region, select a location where your Event Grid namespace is located.
Now, move the mouse over the name of the Event Grid namespace that you want to connect to Real-Time hub in the list of namespaces, and select the Connect button, or select ... (ellipsis), and then select Connect data source.
Now, move on to the Configure and connect to an Event Grid namespace section. Skip the selection of subscription and namespace as they're already selected for you.
Data sources page
Sign in to Microsoft Fabric.
If you see Power BI at the bottom-left of the page, switch to the Fabric workload by selecting Power BI and then by selecting Fabric.
Select Real-Time on the left navigation bar.
On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu.
You can also get to the Data sources page from the Real-Time hub page by selecting the + Add data button in the top-right corner.
On the Data sources page, search for Azure Event Grid namespace, and then select Connect on the Azure Event Grid Namespace tile.
Configure and connect to the Event Grid namespace
On the Configure connection settings page, follow these steps:
For Subscription, select the Azure subscription that has the Event Grid namespace.
For Namespace name, select your Event Grid namespace from the dropdown list.
The contents of Namespace topic section vary depending on whether MQTT is enabled:
If MQTT isn't enabled for the namespace topic, create a new topic or select an existing topic.
If the namespace has MQTT enabled, a topic, and routing enabled, select the subscription and the namespace name.
If the namespace has MQTT enabled but routing isn't enabled for the namespace, select the subscription, the namespace name, and namespace topic options.
If you're using the real-time hub, follow these steps:
- In the Stream details section to the right, select the Fabric workspace where you want to save the eventstream.
- For Eventstream name, enter a name for the eventstream. The wizard creates an eventstream with the selected Event Grid namespace as a source.
- The Stream name value is automatically generated for you by appending -stream to the name of the eventstream. This stream appears on the real-time hub's All data streams page when the wizard finishes.
If you're using the eventstream editor to add an Event Grid namespace as a source to an eventstream, select the pencil button under Source name. Then enter a source name.
Select Next at the bottom of the page.
On the Review + connect page, review your settings, and then select Connect.
The following example shows what the page looks like if both MQTT and routing are enabled for the namespace.
The following example shows what the page looks like if MQTT is enabled for the namespace but routing isn't enabled.
View data stream details
On the Review + connect page, if you select Open eventstream, the wizard opens the eventstream that it created for you with the selected Event Grid namespace as a source. To close the wizard, select Finish at the bottom of the page.
You should see the stream in the Recent streaming data section of the Real-Time hub page. For detailed steps, see View details of data streams in Fabric Real-Time hub.
Confidential and highly confidential sensitivity
If you mark the eventstream with either Confidential or Highly Confidential sensitivity labels, follow these steps so that the Event Grid namespace's managed identity has the appropriate access.
Select Settings (gear icon) in the top-right corner.
Select Admin portal in the Governance and insights section.
Activate the following tenant setting to grant the service principal access to Fabric APIs for creating workspaces, connections, or deployment pipelines.
Enable this option to access all other APIs (enabled by default for new tenants):
- On the Tenant settings page, in the Developer settings section, expand Allow Service principals to create and use profiles option.
- Toggle to Enabled.
- Apply to the entire organization.
- Select Apply.
Related content
To learn about consuming data streams, see the following articles: