The Azure Cosmos DB connector is a Palantir-provided driver for Azure Cosmos DB.
To create a new Azure Cosmos DB source, follow the standard setup flow for Palantir-provided drivers, then use the sections below for Azure Cosmos DB-specific configuration and networking. For the complete property reference, see the official Azure Cosmos DB driver documentation ↗.
The properties below are mandatory or recommended.
| Property | Required? | Description | Default |
|---|---|---|---|
AccountEndpoint ↗ | Mandatory | The value should be the Cosmos DB account URL from the Keys blade of the Cosmos DB account. | https://<URL> |
AuthScheme ↗ | Mandatory | The type of authentication to use when connecting to Azure Cosmos DB. | AccountKey |
AccountKey ↗ | Recommended | A master key token or a resource token for connecting to the Azure Cosmos DB REST API. | — |
InitiateOAuth ↗ | Recommended | Specifies the process for obtaining or refreshing the OAuth access token, which maintains user access while an authenticated, authorized user is working. | REFRESH |
OAuthClientId ↗ | Recommended | Specifies the client Id that was assigned when the custom OAuth application was created. (Also known as the consumer key.) This ID registers the custom application with the OAuth authorization server. | — |
OAuthClientSecret ↗ | Recommended | Specifies the client secret that was assigned when the custom OAuth application was created. (Also known as the consumer secret). This secret registers the custom application with the OAuth authorization server. | — |
Schema ↗ | Recommended | Specify the Azure Cosmos DB database you want to work with. | — |
The table below lists the domains that the source needs to be able to access in order to successfully run.
For each domain, add a corresponding egress policy. If the source is hosted on-premises and not directly reachable from Foundry, use an agent proxy egress policy instead; the agent host itself must also be able to reach the listed domains. See using an agent as a proxy for details.
| Domain | Required |
|---|---|
| <AccountEndpoint> | Always. AccountEndpoint connection property (may be in the format https://<Server>:<Port> or may be a full URL) |
| login.microsoftonline.com | If AuthScheme=AzureAD, AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=GLOBAL (default) |
| login.chinacloudapi.cn | If AuthScheme=AzureAD, AzureServicePrincipal , AzureServicePrincipalCert AND AzureEnvironment=CHINA |
| login.microsoftonline.us | If AuthScheme=AzureAD, AzureServicePrincipal, AzureServicePrincipalCert AND AzureEnvironment=USGOVT or USGOVTDOD |