Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Create Apps from Cosmos DB Data in Qlik Sense Cloud
Use CData Connect Cloud to connect to Cosmos DB Data and build apps from live Cosmos DB data in Qlik Sense Cloud.
Qlik Sense Cloud allows you to create and share data visualizations and interact with information in new ways. CData Connect Cloud creates a live connection to Cosmos DB. By pairing Qlik Sense Cloud with CData Connect Cloud, you get true cloud-to-cloud connectivity to all of your SaaS and cloud-based Big Data and NoSQL sources — no need to migrate your data or write your integrations. Simply connect to Connect Cloud from Qlik Sense Cloud and get instant, live access to your Cosmos DB data.
In this article, we walk through two connections:
- Connecting to Cosmos DB in Connect Cloud
- Connecting to Connect Cloud from Qlik Sense Cloud to create a model and build a simple dashboard
Configure Cosmos DB Connectivity for Qlik Cloud
Connectivity to Cosmos DB from Qlik Cloud is made possible through CData Connect Cloud. To work with Cosmos DB data from Qlik Cloud, we start by creating and configuring a Cosmos DB connection.
(Optional) Add a New Connect Cloud User
As needed, create Users to connect to Cosmos DB through Connect Cloud.
- Navigate to the Users page and click Invite Users
- Enter the new user's email address and click Send to invite the user
- You can review and edit users from the Users page
Add a Personal Access Token
If you are connecting from a service, application, platform, or framework that does not support OAuth authentication, you can create a Personal Access Token (PAT) to use for authentication to the CData Connect Cloud OData service. Best practices would dictate that you create a separate PAT for each service, to maintain granularity of access.
- Click on your username at the top right of the Connect Cloud app and click User Profile.
- On the User Profile page, scroll down to the Personal Access Tokens section and click Create PAT.
- Give your PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
Connect to Cosmos DB from Connect Cloud
CData Connect Cloud uses a straightforward, point-and-click interface to connect to data sources.
- Log into Connect Cloud, click Connections and click Add Connection
- Select "Cosmos DB" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Cosmos DB.
To obtain the connection string needed to connect to a Cosmos DB account using the SQL API, log in to the Azure Portal, select Azure Cosmos DB, and select your account. In the Settings section, click Connection String and set the following values:
- AccountEndpoint: The Cosmos DB account URL from the Keys blade of the Cosmos DB account
- AccountKey: In the Azure portal, navigate to the Cosmos DB service and select your Azure Cosmos DB account. From the resource menu, go to the Keys page. Find the PRIMARY KEY value and set AccountKey to this value.
- Click Create & Test
- Navigate to the Permissions tab in the Add Cosmos DB Connection page and update the User-based permissions.
With the connection to Cosmos DB configured, you are ready to connect to Cosmos DB data from Qlik Sense Cloud.
Create a Qlik Sense App from Cosmos DB Data
This section walks through adding Cosmos DB data to a Qlik Sense app for visualizations, analytics, reporting, and more.
Create a New App and Upload Data
- Log into your Qlik Sense instance and click the button to create a new app
- Name and configure the new app and click "Create"
- In the workspace, click to open the new app
- Click to add data from files and other sources
- Select the Microsoft SQL Server connector and set the configuration properties.
- Set Server to tds.cdata.com
- Set Port to 14333
- Set Database to the connection you created (e.g. CosmosDB1)
- Set User name to the Connect Cloud user (e.g. [email protected])
- Set Password to the PAT for the above user
- Select an owner for the connection
- Select a Cosmos DB entity (Table) to view
- Click Next, configure the model, and load the data into Qlik Sense.
Generate Insights or Customize Your App
With the data loaded into Qlik Sense, you are ready to begin discovering insights. You can build custom visualizations, reports, and dashboards engineered to gain actionable insights into your Cosmos DB data.
More Information & Free Trial
Now, you have created a simple but powerful dashboard from live Cosmos DB data. For more information on creating OData feeds from Cosmos DB (and more than 100 other data sources), visit the Connect Cloud page. Sign up for a free trial and start working with live Cosmos DB data in Qlik Sense Cloud.