Cosmos DB
Cosmos DB
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.
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.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Then, 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.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Then, 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.
-
If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Then, try again.
-
More Information
For more information about interactions between CData Connect Cloud and Cosmos DB, see this information page.