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 add Google Cloud Pub/Sub as an event source in Fabric Real-Time hub. Google Pub/Sub is a messaging service that enables you to publish and subscribe to streams of events.
Prerequisites
- Access to a workspace in the Fabric capacity license mode (or) the Trial license mode with Contributor or higher permissions.
- A Google Cloud account with the Pub/Sub service enabled and a role with the required permissions.
- Your Google Cloud Pub/Sub source should be publicly accessible and not be behind a firewall or secured in a virtual network. If it resides in a protected network, connect to it by using Eventstream connector virtual network injection.
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.
The Streaming data page opens by default. Click on the Add data button to get to the Data sources page.
You can also get to the Data sources page directly by selecting the Add data option in the left navigation bar.
On the Data sources page, select Google Cloud Pub/Sub.
Configure Google Cloud Pub/Sub source
On the Connect screen, under Connection, select New connection.
On the Connection settings screen, fill out the required information.
For Project ID, enter the Project ID from your Google Cloud Console.
For Subscription name, open your Google Pub/Sub and select Subscriptions. You can find the Subscription ID in the list.
Service account key is a JSON file that contains the credentials of your service account. Follow the next steps to generate the file in Google Cloud.
Select IAM & Admin in your Google Cloud Console.
On the IAM & Admin page, under Service Accounts, select CREATE SERVICE ACCOUNT.
After configuring, give your role appropriate Owner permission, and then select Done.
On the Service accounts page, select your role and then select Manage keys under Actions.
Under ADD KEY, select Create new key.
Download the JSON file, copy the JSON content, and enter it as Service account key on the Fabric Connection settings screen.
Important
This JSON file can be downloaded only once.
Select Connect on the Connection settings screen.
Stream or source details
On the Connect page, follow one of these steps based on whether you're using Eventstream or Real-Time hub.
Eventstream:
In the Source details pane to the right, follow these steps:
For Source name, select the Pencil button to change the name.
Notice that Eventstream name and Stream name are read-only.
Real-Time hub:
In the Stream details section to the right, follow these steps:
Select the Fabric workspace where you want to create the eventstream.
For Eventstream name, select the Pencil button, and enter a name for the eventstream.
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.
Select Next at the bottom of the Configure page.
Review and connect
On the Review + connect screen, review the summary, and select Add (Eventstream) or Connect (Real-Time hub).
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 Google Cloud Pub/Sub as a source. To close the wizard, select Close or X* in the top-right corner of the page.
- You should see the stream in the Recent streaming data section of the Real-Time hub home page. For detailed steps, see View details of data streams in Fabric Real-Time hub.
Related content
To learn about consuming data streams, see the following articles: