> For the complete documentation index, see [llms.txt](https://docs.sprinto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinto.com/monitors/cloud-and-infrastructure-monitoring/azure/how-to-resolve-sprinto-check-for-protecting-azure-cosmos-db-public-access.md).

# How to resolve Sprinto check for protecting Azure Cosmos DB Public Access

### About

Sprinto Check: Azure Cosmos DB Protected from Public Access

Sprinto introduces a dedicated check to ensure the secure configuration of Azure Cosmos DB, preventing unauthorized public access. Protecting Azure Cosmos DB from public exposure is essential for safeguarding sensitive data and maintaining a robust security posture.

### Purpose

Securing Azure Cosmos DB from public access helps mitigate the risk of unauthorized access, potential data breaches, and other security vulnerabilities. Restricting access to authorized entities ensures the confidentiality and integrity of your Cosmos DB resources.

### How to resolve

To resolve the check, follow the steps below to configure Azure Cosmos DB and restrict public access:

#### Before you Begin

* Ensure you have the necessary permissions to configure Azure Cosmos DB settings.
* Log in to the Azure portal as an administrator.

#### Configure Network Security

1. Navigate to the[ Azure portal](https://portal.azure.com/).
2. Go to Cosmos DB and select the appropriate Cosmos DB account.
3. In the Cosmos DB account menu, select Firewalls and virtual networks.
4. Set the Allow access from option to Selected networks.
5. Add the necessary networks or IP ranges that should have access. Be specific with IP ranges, avoiding open access from all networks (0.0.0.0/0).

   <figure><img src="https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/72080497889/original/23bFQJ5AS_r28m6sm0jI4GgrQaMtXn7FYg.jpeg?1704733359" alt="" width="563"><figcaption></figcaption></figure>
6. Ensure that the option Allow access to Azure services is configured according to your requirements.
7. Save the changes.

Securing Azure Cosmos DB from public access is a critical step in protecting your data and ensuring compliance with security best practices. Sprinto will verify the configuration, marking the Cosmos DB Public Access Protection check status as "Passing."

If you have any questions or require assistance with the Sprinto check for Azure Cosmos DB, please get in touch with [Sprinto support](mailto:www.support@sprinto.com). We're here to assist you!


---

# 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 dynamically by asking a question.

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

```
GET https://docs.sprinto.com/monitors/cloud-and-infrastructure-monitoring/azure/how-to-resolve-sprinto-check-for-protecting-azure-cosmos-db-public-access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
