> For the complete documentation index, see [llms.txt](https://docs.secoda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.secoda.co/integrations/databases/azure-cosmos-db.md).

# Azure Cosmos DB

An overview of the Azure Cosmos DB integration with Secoda

{% content-ref url="/pages/2WXQzTIEMXBgTKZmvFlO" %}
[Azure Cosmos DB Metadata Extracted](/integrations/databases/azure-cosmos-db/metadata-extracted.md)
{% endcontent-ref %}

### Getting Started with Azure Cosmos DB

To integrate Azure Cosmos DB with Secoda, follow these three steps:

1. Retrieve your Cosmos DB Credentials
2. Whitelist Secoda IP Addresses
3. Connect Azure Cosmos DB to Secoda

#### 1. Retrieve your Cosmos DB Credentials

If using the NoSQL Cosmos DB:

* Navigate to the Azure portal.
* Go to your Cosmos DB account.
* Under 'Settings', select 'Keys'.
* Create a read-only key.

If using the Tables Cosmos DB:

* Navigate to the Azure portal.
* Go to your Cosmos DB account.
* Under 'Connecting Strings', select "Primary Connecting String"

#### 2. Whitelist Secoda IP Address

* In Azure Cosmos DB, go to 'Networking'.
* Either set public network access to `all networks` or under the `select network` add the [Secoda IP address](/faq.md#what-are-the-ip-addresses-for-secoda) to the firewall whitelist.

#### 3. Connect Azure Cosmos DB to Secoda

* Visit [Secoda's Integrations page](https://app.secoda.co/integrations).
* Click "New Integration".
* Search for "Azure Cosmos DB" and select it.
* Select your cosmos DB type: "Tables" or "NoSQL"
* Enter your Cosmos DB credentials.
* Click "Test Connection".
* Once successful, click "Submit".
* Choose the data you want to import into Secoda.
* Click "Run Initial Extraction".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.secoda.co/integrations/databases/azure-cosmos-db.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
