1,843 questions with Azure Cosmos DB tags

Sort by: Updated
0 answers

Usage of Continuation Token in production CosmosDB

My question relates to the working of Continuation Token in CosmosDB. My use case is the following - at some time t1, I want to start fetching some subset of documents from one of my containers in my CosmosDB account. This subset can be fetched using a…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-24T09:25:06.2233333+00:00
Divyanshu Bains 0 Reputation points
edited the question 2025-04-24T09:31:06.82+00:00
Divyanshu Bains 0 Reputation points
1 answer One of the answers was accepted by the question author.

Cosmos DB NoSQL Connection Pooling in FastAPI

Is it necessary to implement a connection pool at the application level when using Azure Cosmos DB NoSQL with autoscale enabled? The backend is built on FastAPI, and there is confusion regarding the appropriate way to manage connection pooling. Some…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-23T07:46:02.1166667+00:00
Samruddha K - iProgrammer 20 Reputation points
accepted 2025-04-24T07:02:26.16+00:00
Samruddha K - iProgrammer 20 Reputation points
1 answer

Unable to Create Stored Procedure in Azure Cosmos DB Container

Experiencing an issue when attempting to create a new stored procedure in a specific container within Azure Cosmos DB. The error encountered is as follows: Error while creating stored procedure spSelectCount: Message:…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-23T14:00:59.5133333+00:00
Kirankumar Bharsadiya 60 Reputation points
edited a comment 2025-04-24T04:35:44.94+00:00
Kirankumar Bharsadiya 60 Reputation points
0 answers

Extends timeout maxTransactionLockRequestTimeoutMillis in Azure Cosmos DB for MongoDB

Hi We are facing interuption because of this maxTransactionLockRequestTimeoutMillis was set 5 seconds by default. How to modify or extends the timeout to be 30 seconds? Thank you

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-22T03:24:39.7733333+00:00
Pandhu Wibowo 0 Reputation points
commented 2025-04-24T00:42:48.76+00:00
Manasa Akula 250 Reputation points Microsoft External Staff
1 answer

Recommended RU Configuration for CosmosDB Container in Real-Time Event Stream Pipeline

What is the optimal RU configuration for a CosmosDB container when it is used as a source in a real-time ingestion pipeline? The initial attempt was made with a free tier CosmosDB container, which did not work. After creating another container with…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-23T22:20:22.21+00:00
Kbaig109 0 Reputation points
answered 2025-04-23T23:16:15.3366667+00:00
Sai Raghunadh M 3,155 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Getting authentication error pop-up on CosmosDB portal Data Explorer

RBAC users who have access to our CosmosDB instance are getting the following pop-up on the Azure portal Data Explorer. I am an owner, and I also see the error. It seems to be irrelevant, as all access to configurations and data based on role is working.…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-07T17:54:13.45+00:00
Steve Mandras 21 Reputation points
accepted 2025-04-23T14:34:59.8166667+00:00
Steve Mandras 21 Reputation points
1 answer

Enable Partition Key delete feature for Cosmos account

Hi, I need to use the API DeleteAllItemsByPartitionKeyStreamAsync (https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-delete-by-partition-key?tabs=dotnet-example) for one of my usecase. I enabled the DeleteAllItemsByPartitionKey capability by…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-20T20:02:37.8033333+00:00
Pavan Kumar Jannaikode 0 Reputation points Microsoft Employee
commented 2025-04-23T00:39:59.54+00:00
Manasa Akula 250 Reputation points Microsoft External Staff
1 answer

New column in CosmosDB NoSQL does not show up in Analytical Store

When we add a new column to new documents in our CosmosDB NoSQL container, the new column does not show up in Analytical Store unless we add that new column to every other document in the container. This breaks not just queries for the new column, but…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,304 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2024-10-21T23:04:10.2166667+00:00
Jon Hawkins 0 Reputation points
edited a comment 2025-04-22T22:23:51.4333333+00:00
Erik O'Leary 16 Reputation points
1 answer

How can I map or associate a value to another in Cosmos DB (e.g., map Jabalpur to MP)?

I have a document in Cosmos DB where one field contains a city name like Jabalpur. I want to map this city to a corresponding state value, e.g., MP. What is the best way to store or structure this kind of mapping in Cosmos DB? Should I use embedded…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-14T05:59:34.8+00:00
Harshit Gupta 60 Reputation points
edited a comment 2025-04-22T04:00:40.7733333+00:00
Manasa Akula 250 Reputation points Microsoft External Staff
1 answer

What is the limit of collection in Azure Cosmos DB for MongoDB (vCore) ?

According to the official documentation for Azure Cosmos DB for MongoDB vCore (https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/limits), there is a stated limit of 1000 collection per cluster. However, in my current setup (Cluster tier :…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-09T15:09:48.1466667+00:00
Hugo MENDES ADMAZ 0 Reputation points
commented 2025-04-21T22:33:46.5366667+00:00
Oury Ba-MSFT 20,716 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to rollback the upgrade of the minimum TLS version from 1.0 to 1.2 in Cosmos DB

We are planning the upgrade of the minimum TLS version from 1.0 to 1.2 in our Cosmos DB resources. As part of this planning we need to try the rollback to TLS 1.0 in case we have problems with the applications. But I haven´t found an option in the azure…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-21T15:04:58.7833333+00:00
Datto De los rios, Jorge Antonio 20 Reputation points
accepted 2025-04-21T16:52:34.71+00:00
Datto De los rios, Jorge Antonio 20 Reputation points
1 answer

FullTextScore not working with Cosmos DB (NoSQL)

I’m using Cosmos DB with both Full-Text & Hybrid Search for NoSQL API and Vector Search for NoSQL API (both enabled before container creation). I’ve set up the appropriate indexing policy with full-text and vector indexes. Here are three queries I’m…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-18T15:11:42.4733333+00:00
Rioghan Cunniffe 0 Reputation points
answered 2025-04-18T17:57:51.0733333+00:00
Sai Raghunadh M 3,155 Reputation points Microsoft External Staff
1 answer

Unable to Connect Mongo Compass to Provisioned Cosmos Mongodb

Hello! Just transitioned from a serverless cosmos mongodb instance to a provisioned one. Was previously able to connect to my serverless instance with mongo compass using the connection string. With the provisioned instance, I am unable to use mongo…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-15T22:21:26.7766667+00:00
Alex Lewis 0 Reputation points
commented 2025-04-17T02:07:50.2233333+00:00
Mahesh Kurva 3,575 Reputation points Microsoft External Staff
1 answer

Error using Cosmos DB (MongoDB API vCore) Vector Search with LangChain: 'embedding' KeyError

Hi everyone, I'm implementing semantic search using LangChain and Azure Cosmos DB (MongoDB API vCore) with vector search (vector-diskann). I'm generating embeddings using Azure OpenAI with the text-embedding-3-large model. Everything works fine until…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-10T01:31:17.9466667+00:00
Maria Natalia Benavides Sanabria 10 Reputation points
commented 2025-04-17T00:48:08.0233333+00:00
Manasa Akula 250 Reputation points Microsoft External Staff
0 answers

Audit Logging Enablement on Azure CosmosDB

Why "disableKeyBasedMetadataWriteAccess" needs to be disabled on Azure Cosmos DB before enabling Control plane logging on it ? Without having it configured, will it miss to capture any of the CURD operations on the logging ?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-14T09:30:07.8466667+00:00
Premnath S 0 Reputation points
commented 2025-04-16T09:54:22.5733333+00:00
Mallaiah Sangi 560 Reputation points Microsoft External Staff
0 answers

How can I maintain custom order of properties in Azure Cosmos DB instead of alphabetical order?

In Cosmos DB, I want to store properties like 1. Key, 2. Inside, etc., in the order I define. However, Cosmos DB seems to automatically sort them alphabetically, which creates issues — especially when these documents are passed to LLMs that rely on the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-14T05:58:10.81+00:00
Harshit Gupta 60 Reputation points
commented 2025-04-16T07:59:12.4966667+00:00
Mahesh Kurva 3,575 Reputation points Microsoft External Staff
1 answer

Conflicts not appearing in the Conflict Feed

Hello everyone! I'm currently trying to understand how to generate conflicts in order to test some stored procedures I've developed to solve conflicts. Right now I'm not testing the stored procedures, I'm just trying to understand how can I generate…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-05T18:31:26.2533333+00:00
João Pereira 0 Reputation points
commented 2025-04-16T06:44:43+00:00
Narendra Pakkirigari 0 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

i dropped Azure Cosmos DB for PostgreSQL Cluster resource

Hello, by mistake, I dropped Azure Cosmos DB for PostgreSQL Cluster resource. Can I recover this resource to state before dropping with it's data? Thanks

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-15T14:11:07.7166667+00:00
Jakub Ryška 20 Reputation points
accepted 2025-04-15T15:13:50.6433333+00:00
Jakub Ryška 20 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to delete containers as one of the container name contains &

In Azure cosmos database, I created a container name with &. I didn't realize that it would create a problem. This container name passed from dev environment to production environment. Now I want to get rid of this container as I am not using. But…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-14T10:22:43.7833333+00:00
Srinu Tamada 45 Reputation points
accepted 2025-04-15T05:12:08.64+00:00
Srinu Tamada 45 Reputation points
0 answers

MongoDB Container persisted to Azure Blob (Container) Storage get corrupted

Hi, I am using “mongo:noble” container for my AKS project, the container is persisted to Azure Container Storage ( Blob storage ). It was working fine till last month, but then suddenly when the AKS was loading the MongoDB container it started failing…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,843 questions
asked 2025-04-10T08:08:36.0166667+00:00
Arnoldas Karpavicius 5 Reputation points
commented 2025-04-14T13:01:00.59+00:00
Arnoldas Karpavicius 5 Reputation points