# Azurecosmosdb

### How to Connect Azure Cosmos DB to Churned

1. Log in to the Churned platform and go to the “Integrations” section.
2. Click on “New Integration” and select Azure Cosmos DB from the list.
3. You will be prompted to enter the following credentials:

#### Required Credentials

* account\_endpoint - The unique URL used to access your Azure Cosmos DB instance.
* account\_key - The authentication key required to connect to your Cosmos DB account.
* database\_name - The name of the specific database you want to connect.

### How to Retrieve These Credentials

Follow these steps to find the required credentials:

1. Log in to the[ Azure Portal](https://portal.azure.com).
2. Find the Account Endpoint and Key:

* Navigate to Azure Cosmos DB and select your Cosmos DB account.
* In the left menu, click on Keys under the Settings section.
* Copy the Primary Connection String or Primary Key (this is your account\_key).
* Copy the URI (this is your account\_endpoint).

1. Retrieve the Database Name:

* Go to the Data Explorer section within your Cosmos DB account.
* Find the database you want to integrate and copy its name.

### Final Steps

1. Copy and paste the retrieved credentials into the Churned integration form.
2. Click Save and test the connection to ensure everything is working correctly.
3. Once connected, notify the Churned team to synchronize data.

### Helpful Links

* [Azure Cosmos DB Documentation](https://learn.microsoft.com/en-us/azure/cosmos-db/)
* [Managing Keys and Connection Strings](https://learn.microsoft.com/en-us/azure/cosmos-db/manage-account-keys)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.churned.io/churned-docs/integrations/azurecosmosdb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
