Add Google Cloud Pub/Sub source to an eventstream
This article shows you how to add a Google Cloud Pub/Sub source to an eventstream.
Google Pub/Sub is a messaging service that enables you to publish and subscribe to streams of events. You can add Google Pub/Sub as a source to your eventstream to capture, transform, and route real-time events to various destinations in Fabric.
Note
This source is not supported in the following regions of your workspace capacity: West US3, Switzerland West.
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 must be publicly accessible and not be behind a firewall or secured in a virtual network.
- If you don't have an eventstream, create an eventstream.
Add Google Cloud Pub/Sub as a source
If you haven't added any source to your eventstream yet, select Use external source tile.
If you're adding the source to an already published eventstream, switch to Edit mode, select Add source on the ribbon, and then select External sources.
On the Select a data source page, search for and select Connect on the Azure Event Hubs tile.
Configure and connect to Google Cloud Pub/Sub
Important
You can consume the Google Cloud Pub/Sub events in only one eventstream. Once you fetch the events into an eventstream, they can't be consumed by other eventstreams.
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 all 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.
Review the summary, and then select Add.
You can see the Google Cloud Pub/Sub source added to your eventstream in Edit mode.
Select Publish to publish the changes and begin streaming data from Google Cloud Pub/Sub to the eventstream.
Related content
Other connectors: