# Azure Cosmos DB

{% 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: 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.secoda.co/integrations/databases/azure-cosmos-db.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.
