1,920 questions with Azure Cosmos DB tags

Sort by: Updated
0 answers

Suddenly unable to access Azure Cosmos DB(Mongo)

Suddenly from today morning, azure cosmos db is not accessible. it says online. but i am unable to connect using my code, or view data in data explorer it says Failed to retrieve collection list. Please click Refresh to try again.Failed to retrieve…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-15T04:07:38.0266667+00:00
Bandana_Edtech 0 Reputation points
commented 2025-07-15T12:30:08.7266667+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
0 answers

getaddrinfo ENOTFOUND poc-mongo-XXX.mongo.cosmos.azure.com

I have created an Azure Cosmos DB for MongoDB (vCore) instance with public access enabled. There are no firewall rules blocking access, and no VPN or VNet/private endpoint configured. I'm attempting to connect to the database using MongoDB Compass with…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-15T07:21:16.99+00:00
Seenivasan R 0 Reputation points
commented 2025-07-15T08:06:06.0833333+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
1 answer

Azure Cosmos DB with mongo don't support .sort operation ?

Hi, after trying to query data from cosmos db (configured for mongo), but I got error on .sort({"at": -1}) Everything works on localhost mongo db very well, but not in azure. Trace back from python is: 2024-04-09T13:02:08.1267872Z Traceback…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2024-04-09T13:10:56.72+00:00
Erik Palenčík 0 Reputation points
commented 2025-07-15T07:07:23.1433333+00:00
Hugo Human 0 Reputation points
1 answer

How to fix mongodb vcore for cosmos connectivity issue thre is no ip restriction?

I'm unable to get dns response from the cosmos DB and the error that is thrown is Failed to retrieve server info MongoServerError: [ActivityId=a4e39d36-7523-101c-616b-f9d205000000] User info is null when extracting the single user role When application…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-14T11:33:03.9133333+00:00
Sarmad Hanif 0 Reputation points
commented 2025-07-15T03:54:32.2366667+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
1 answer

Cosmos DB using incorrect composite index

My sql query is: SELECT * FROM c WHERE c.ResourcePartition = 'abc123' AND c._ts >= The container has 2 composite indices: "compositeIndexes": [ [ { "path": "/ResourcePartition", …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-14T23:01:11.6766667+00:00
H 0 Reputation points
commented 2025-07-14T23:52:44.9666667+00:00
Mahesh Kurva 5,540 Reputation points Microsoft External Staff Moderator
0 answers

mongodb storage upgrade is stuck from 40+ minutes

upgrading mongodb storage is this is stuck, mongodb storage upgrade is stuck from 40+ minutes

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-14T16:09:44.0666667+00:00
Adhik Joshi 0 Reputation points
edited a comment 2025-07-14T21:12:33.06+00:00
Mahesh Kurva 5,540 Reputation points Microsoft External Staff Moderator
1 answer

Azure Cosmos DB Key-Value Tables Core (SQL) vs Table API

Both Core (SQL) API and Tables API work with data in Key-Value table. What are the considerations for choosing one over the other? In practice is there a default choice ... like unless one needs to be able to: a) condition 1 b) condition 2 …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2022-08-23T22:48:04.583+00:00
JJ Sharma 1 Reputation point
commented 2025-07-11T23:51:57.2766667+00:00
geetika aswal 0 Reputation points
2 answers One of the answers was accepted by the question author.

I need to recover my cosmos db data that i accidentally deleted

I have accidentally deleted some report data in my cosmos DB, please help me recover it

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-10T09:07:26.77+00:00
Tahir 20 Reputation points
accepted 2025-07-11T04:33:18.5+00:00
Tahir 20 Reputation points
1 answer

Is Cosmos Db Gremlin API deprecated?

I'm unable to create a new Cosmos DB Gremlin API instance in any North America region. Does this mean that Microsoft is phasing out Cosmos/Gremlin API?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-07T23:36:52.1633333+00:00
Todd Shelton 0 Reputation points
commented 2025-07-10T19:08:36.73+00:00
Oury Ba-MSFT 20,936 Reputation points Microsoft Employee Moderator
1 answer

Cosmos DB, containers, and selecting the most appropriate partition Key!

I am looking for advice on selecting the most appropriate partition key/hierarchical partition key. Basically, we are building a marketplace for private car sales. The "car listing" will include car details, make, model, trim, etc. the model…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-09T03:29:05.7033333+00:00
Victor H P 0 Reputation points
answered 2025-07-10T12:11:36.3066667+00:00
SSingh-MSFT 16,371 Reputation points Moderator
1 answer

Cosmos for NoSql DB: ServiceUnavailable (410), BadRequest on Cross-Partition Query – Unable to Access Collection

We are consistently encountering errors when querying a specific Azure Cosmos DB collection. The issues are as follows: ServiceUnavailable (410): The service returns a 410 status code indicating it is currently unavailable. According to the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-04T06:25:09.4633333+00:00
Rita He 0 Reputation points
edited a comment 2025-07-10T09:28:19.79+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Cost analysis to access cosmos container with 30 concurrent users

I want to support 30 concurrent users to fetch 50,000 records from Cosmos container, each record is of size 20kb approximately. When i tried it took around 36,000 RUs to fetch records for one user. Considering this i have come up with cost analysis, not…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-07T23:35:25.21+00:00
Sam Azpan D 20 Reputation points
accepted 2025-07-10T06:21:20.16+00:00
Sam Azpan D 20 Reputation points
0 answers

How to set a timeout for queries in Cosmos DB for NoSQL

When using the Azure Cosmos DB Python SDK, I want to set a query timeout to avoid long waiting times. However, when I tested it with the following code, the timeout setting didn’t work as expected. Does this SDK support setting a timeout for…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-10T01:58:39.1033333+00:00
Billy Zhou 40 Reputation points
commented 2025-07-10T03:45:56.6666667+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
1 answer

Handling Large Graph Datasets and RU Limits in Production

Our graph in Azure Cosmos Gremlin is designed to support a social media app, consisting of four types of vertices: member, channel, event, and comment. These vertices are connected to each other through various types of edges, such as member follows…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-09T09:27:13.5333333+00:00
Zac Chong 0 Reputation points
commented 2025-07-10T02:22:48.8066667+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator
0 answers

Cosmos DB usage spike tonight

We have a Cosmos DB instance and saw a large and unusual spike in data usage tonight. After the spike, the data usage went back to a level significantly higher than before. How can I find out whether this was due to Azure doing something or whether we…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2021-07-20T10:01:00.06+00:00
Matthijs Hakfoort (Rotra) 6 Reputation points
edited a comment 2025-07-08T22:01:41.3666667+00:00
Graham 41 Reputation points
1 answer One of the answers was accepted by the question author.

cosmos db container collection list not showing data

Containers **IDDatabaseThroughput (RU/s)**Failed to retrieve collection list. Please click Refresh to try again.Failed to retrieve collection list. Please click Refresh to try again.Data Explorer - querying returns "Error sending request: failed to…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-07T12:49:33.2633333+00:00
Kim Sophan 20 Reputation points
accepted 2025-07-08T14:07:38.71+00:00
Kim Sophan 20 Reputation points
1 answer

Adding 'Cosmos DB Built-in Data Reader' (or equivalent) role assignment to Cosmos DB

I want to use my Azure AI search service to index my Cosmos DB, following a modified version of https://github.com/Azure-Samples/azure-search-python-samples/blob/main/Tutorial-RAG/Tutorial-rag.ipynb When I try to create the indexer with: indexer_client…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-06-30T19:41:34.84+00:00
Ben Lister 20 Reputation points
commented 2025-07-07T16:15:58.73+00:00
Mahesh Kurva 5,540 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How to fix the cosmos db 403 and 404 while going inside azure cosmos db insights or filtering

Alert Activated Because: Metric nameTotalRequestsMetric namespacedatabaseAccounts/test DimensionsGlobalDatabaseAccountName = test cosmosStatusCode = 404 IsExternal = TrueTime AggregationCountPeriodOver the last 15…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-07T12:42:35.63+00:00
ramprasad.r 40 Reputation points
edited a comment 2025-07-07T15:44:33.3566667+00:00
ramprasad.r 40 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to Access India Location in Azure Cosmos DB for MongoDB RU

In Azure Cosmos DB for MongoDB RU, access to the India location is not available. Access is needed due to an upcoming soft launch in India. What steps can be taken to resolve this issue?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-07T10:18:33.53+00:00
Varun Padha 20 Reputation points
accepted 2025-07-07T11:08:42.23+00:00
Varun Padha 20 Reputation points
1 answer

CosmosDB Point in Time Restore issue

Hi all, I am trying Cosmos DB backup continuous mode. Despite what I understand from the doc in reality I see that is not possible to restore (deleted) records within a container in the same account. As a test I have deleted few records and I am…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,920 questions
asked 2025-07-04T12:56:10.2433333+00:00
banto b 20 Reputation points
commented 2025-07-07T01:44:33.56+00:00
Saraswathi Devadula 7,800 Reputation points Microsoft External Staff Moderator