Cosmos DB
Cosmos DB
Setup Guide
Follow these steps to connect Cosmos DB to your CData Connect Cloud account:
-
Open the Connections page of the CData Connect Cloud dashboard.
-
Click + Add Connection in the upper-right corner.
-
Type Cosmos DB into the search field, then click the data source name.
-
On the Basic Settings tab of the new connection, enter a connection name or keep the default name.
-
Enter your Cosmos DB account URL Account Endpoint. You can find this URL under the Keys blade of the Cosmos DB account.
-
Select the Authentication method, then proceed to the relevant section and follow those instructions.
Authentication Methods
AccountKey
-
Enter the master key token or resource token for connecting to the Cosmos DB REST API in the Account Key field.
-
Use the Token Type field to specify whether the token you entered in the Account Key field is a master or resource token.
-
In Cosmos DB, add the CData Connect Cloud static IP addresses to your connection whitelist.
-
At the top of the CData Connect Cloud Add Cosmos DB Connection page, click Save & Test.
-
If the connection test succeeds, a message indicates that your connection has been created. The Status on the Edit Connection page also changes to Authenticated.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. CData Connect Cloud displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.
-
AzureAD
-
Enter the OAuth Client Id assigned when you registered your Cosmos DB account for OAuth.
-
Enter the OAuth Client Secret for your Cosmos DB account for OAuth.
-
In Cosmos DB, add the CData Connect Cloud static IP addresses to your connection whitelist.
-
At the top of the CData Connect Cloud Add Cosmos DB Connection page, click Save & Test.
-
If the connection test succeeds, a message indicates that your connection has been created. The Status on the Edit Connection page also changes to Authenticated.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. CData Connect Cloud displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.
-
AzureServicePrincipal
-
Enter the Azure Tenant Id to connect to.
-
Enter the OAuth Client Id found in your application settings.
-
Enter your OAuth Client Secret.
-
In Cosmos DB, add the CData Connect Cloud static IP addresses to your connection whitelist.
-
At the top of the CData Connect Cloud Add Cosmos DB Connection page, click Save & Test.
-
If the connection test succeeds, a message indicates that your connection has been created. The Status on the Edit Connection page also changes to Authenticated.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. CData Connect Cloud displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.
-
More Information
For more information about interactions between CData Connect Cloud and Cosmos DB, see this information page.