1,892 questions with Azure Cosmos DB tags

Sort by: Updated
2 answers

CosmosDB backup consistency question

Hi, After reviewing the Microsoft Cosmos DB documentation, I have a consistency-related question regarding CosmosDB PITR backups. Here's the information I've gathered: The webpage indicates that The restore process ensures that all the data restored in…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-11T21:02:17.5433333+00:00
SamWang 0 Reputation points
answered 2025-06-18T17:47:19.7033333+00:00
PratikLad 1,585 Reputation points Microsoft External Staff Moderator
1 answer

Depoyment failure when creating cosmo db with mongo support on azure

I am getting an error when I am trying to create Cosmos MongoDB service in Azure.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-13T13:29:19.19+00:00
Harmeet Kamboj 0 Reputation points
answered 2025-06-18T10:25:06.09+00:00
Taduturu Balaji 80 Reputation points Microsoft External Staff Moderator
1 answer

Azure Cosmos DB Emulator is keeping documents with TTL

Hi, I working with a team in my company that is using Azure Cosmos DB. We are working on implementing a TTL for documents and we noticed an issue with the Azure Cosmos DB Emulator. Not sure if this is also an issue in the Azure Cosmos DB instance. …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-12T13:42:37.3566667+00:00
Mario Rivera 0 Reputation points
commented 2025-06-18T08:37:35.7133333+00:00
Mahesh Kurva 4,705 Reputation points Microsoft External Staff Moderator
1 answer

RU estimation in Cosmos DB

Hi, For migrate Cosmos DB from serverless to provisioned mode, since usage can vary over time, I’m trying to figure out the best way to estimate the required RU/s before switching. I’ve checked the "Monitoring" and "Metrics" section…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-15T13:37:45.03+00:00
ElenaMarlowe-3376 65 Reputation points
commented 2025-06-18T04:33:59.8233333+00:00
Vijayalaxmi Kattimani 3,065 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Follow-Up on Enabling Partition Key Delete Feature for Cosmos DB Account

Hello, This is just a follow-up regarding the following question: https://learn.microsoft.com/en-us/answers/questions/2259655/enable-partition-key-delete-feature-for-cosmos-acc?utm_source=chatgpt.com Someone on my team is seeking confirmation on whether…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-05-23T20:20:57.56+00:00
LeRoy, Kevin 105 Reputation points
accepted 2025-06-17T21:47:47.1166667+00:00
LeRoy, Kevin 105 Reputation points
1 answer

I need to restore a cosmos db

I have a Cosmos DB that is on periodic backup, I need to restore to a backup from yesterday afternoon.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-12T17:53:35.83+00:00
Andrew Taylor 0 Reputation points
commented 2025-06-17T21:28:36.7833333+00:00
Sai Raghunadh M 4,300 Reputation points Microsoft External Staff Moderator
2 answers

How to estimate RU/s in Provisioned mode?

Hi, I’m currently using Azure Cosmos DB in Serverless mode, and I’m considering migrating to Provisioned throughput mode. Is there any method to better estimate the RU/s I’ll need? Since usage can vary. e.g., from serverless mode usage track Appreciate…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-14T04:38:05.4666667+00:00
RTG-1064 40 Reputation points
edited an answer 2025-06-17T09:14:28.0733333+00:00
Vijayalaxmi Kattimani 3,065 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

"How to optimize query performance in Azure Cosmos DB with large JSON documents?"

I'm using Azure Cosmos DB (SQL API) to store large JSON documents (each ~1MB in size). I'm experiencing high RU consumption and latency during queries, especially when filtering on nested properties. Could you please suggest the best practices…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-12T17:14:20.79+00:00
Ananth Sharma 20 Reputation points
commented 2025-06-16T13:46:17.7833333+00:00
Ananth Sharma 20 Reputation points
0 answers

Cosmos with mongodb (vcore) in a golang environment?

Hi our team here at Solidicon has trouble understanding what client to use in a golang environment when using Cosmos with mongodb (vcore) version, we hear and read different answers. we hear that the official "mongo-driver" works fine but then…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-11T13:40:31.31+00:00
Johan Westerlund 21 Reputation points
commented 2025-06-16T10:50:00.5666667+00:00
PratikLad 1,585 Reputation points Microsoft External Staff Moderator
1 answer

Cosmos DB Emulator returns only HTTP 503 Service Unavailable

The local Cosmos DB Emulator used to work fine on my system a couple of months ago, but now it's not responding to any operation from the Data Explorer frontend or a .NET client. System: Windows 11 Enterprise, build 22621 Version: Azure Cosmos DB…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-05-27T13:20:55.8166667+00:00
Daniel Saner 30 Reputation points
commented 2025-06-15T23:05:20.8266667+00:00
Ariel Moraes 0 Reputation points
1 answer

Error querying documents: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. (management.azure.com:443),

On portal.azure.com when I go to any of: Azure Cosmos DB for MongoDB account (RU) to the Data Explorer and I type a query like {"_id":"1234"} or I open a shell or I open the query tab I get the following error from the notification…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-05T13:52:58.6733333+00:00
Enrico Facciani (Consultant) 0 Reputation points
commented 2025-06-13T14:01:34.44+00:00
PratikLad 1,585 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

HNSW index is not supported for M30 cluster tier

Hi everyone, We have a Cosmos DB MongoDB (vcore) M30 instance running for over a year. We were using the HNSW indexes for vector searches. However, recently vector search queries started failing without any change on our side, causing our product feature…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-13T10:40:40.14+00:00
Pascal Pieters 20 Reputation points
accepted 2025-06-13T11:26:49.17+00:00
Pascal Pieters 20 Reputation points
1 answer

How to fix error: self-signed certificate in certificate chain when connect to Azure Cosmos DB for MongoDB account from local

Hi, I try to connect to Azure Cosmos DB for MongoDB account from local machine. I use typescript library mongoose to connect to it. This is an error TopologyDescription { type: 'Unknown', servers: Map(1) { …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-12T04:05:03.15+00:00
Mattanapol Konguthaikul (TH) 0 Reputation points
answered 2025-06-13T03:43:07.5433333+00:00
Vijayalaxmi Kattimani 3,065 Reputation points Microsoft External Staff Moderator
4 answers

How to connect Power BI to Azure CosmosDB for MongoDB vCore?

I'm trying to connect Power BI to the Azure CosmosDB for MongoDB vCore Free Tier that I provisioned, but the connector asks for an 'Endpoint,' which is not provided in the resource's general panel. Using MongoCompass with the connection string, the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-03-09T19:21:55.0233333+00:00
William Macedo Marcondes 20 Reputation points
commented 2025-06-12T10:33:40.7833333+00:00
Deekshith 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to setup managed Scylla db or do we need to deploy on a vm?

we are moving away from mongoDB to scylla but there is no managed db available for Scylla on azure.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-12T03:59:31.7033333+00:00
akshat kotpalliwar 20 Reputation points
accepted 2025-06-12T04:50:03.97+00:00
akshat kotpalliwar 20 Reputation points
2 answers

Auditing records in Cosmos for TTL deletes

Is there a way for an java spring-boot application connected to a cosmos container to be aware when a record is deleted within cosmos because the TTL has been exceded?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-10T16:37:17.4666667+00:00
Miguel Carneiro 0 Reputation points
commented 2025-06-11T17:20:57.2166667+00:00
Sai Raghunadh M 4,300 Reputation points Microsoft External Staff Moderator
2 answers

Web application is unable to connect to CosmosDB in the US East region only

Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: ServiceUnavailable (503); Substatus: 20003; Only affects the instance in the US East region. Another instance in the US South Central region, connecting to the same…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-06T17:51:06.91+00:00
Alex Pavlunenko 5 Reputation points
commented 2025-06-11T10:02:22.6033333+00:00
Mahesh Kurva 4,705 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Continuous backup in Cosmos DB serverless

Hi, I understand that Cosmos DB in serverless mode operates in a single-region deployment model, and continuous backup is enabled by default. In case of a regional outage, I’d like to clarify whether the “Restore to a new account” option is still…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-10T06:09:47.33+00:00
Kanie-0317 100 Reputation points
accepted 2025-06-10T08:40:20.11+00:00
Kanie-0317 100 Reputation points
1 answer One of the answers was accepted by the question author.

Do I really need a separate lease container for each container I want to subscribe to withe changefeed?

It doesn't seem optimized to implement (and pay) for a lease container for each of the containers that I wish to be able to subscribe to a changefeed. Can a single container intended to track leases (to "act as a book mark" [as referenced…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2021-01-07T22:18:43.617+00:00
WestCoastSolutionArch 21 Reputation points
commented 2025-06-09T19:40:39.8333333+00:00
Zion Vessigault 0 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

DR Practices for Cosmos DB Serverless Mode

Hi, I'm looking for advice on disaster recovery approaches for Azure Cosmos DB in serverless mode. Has anyone had experience with this scenario? (I currently have Continuous Backup enabled on my serverless Cosmos DB account.) Would it be a good idea to…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
asked 2025-06-08T10:08:17.94+00:00
ElenaMarlowe-3376 65 Reputation points
accepted 2025-06-09T14:31:18.2966667+00:00
ElenaMarlowe-3376 65 Reputation points