1,938 questions with Azure Cosmos DB tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Title: How to remove EnableMongo16MBDocumentSupport capability from Azure Cosmos DB to enable CMK encryption?

Title: How to remove EnableMongo16MBDocumentSupport capability from Azure Cosmos DB to enable CMK encryption? Body: I have an Azure Cosmos DB account (Mongo API) that currently has the following capabilities enabled: json CopyEdit `[ {…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-11T12:14:47.2366667+00:00
Shubham Raut 0 Reputation points
accepted 2025-08-12T09:03:18.4433333+00:00
Shubham Raut 0 Reputation points
1 answer

Unable to Create MongoDB User in Azure Cosmos DB for MongoDB vCore

Per title, I cannot create secondary native users in vCore mongo cluster. EastUS region and M10 tier. No UI exists (as mentioned in answer https://learn.microsoft.com/en-us/answers/questions/5513331/unable-to-create-mongodb-user-in-azure-cosmos-db-f).…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-08T22:49:51.23+00:00
Jonathan Allbritten 0 Reputation points
edited a comment 2025-08-11T22:46:27.7566667+00:00
Jonathan Allbritten 0 Reputation points
0 answers

Cosmos DB vCore Vector Index Error Outside US Region: InternalError & Server Shutdown (Error Code 91)

Hello, We are encountering consistent issues when performing insert and read operations on a vector index in Azure Cosmos DB vCore outside US regions. While performing vector operations, we get the following…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-06T05:36:36.61+00:00
Harikrishna P S 0 Reputation points
commented 2025-08-11T18:38:42.0266667+00:00
Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
1 answer

Unable to run pg_partman jobs due to lost permissions on admin account to extension tables

I am using pg_partman to manage partitions. My admin account lost permission to access partman.part_config and cannot run partition jobs anymore and I am unable to grant permission to the table manually for that user. How can I fix this issue and regain…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-16T15:21:09.14+00:00
Wolfjaw Studios 0 Reputation points
commented 2025-08-11T16:11:58.3+00:00
Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

[Azure Cosmos DB][Multi-Write Setup] Does Cosmos DB SDK support cross region retries for transient error codes like 429/410

We have a multi-write region setup. Wanted to know if Cosmos SDK inherently a cross region retries for transient error codes ? Does the cross region retry kick-in after a single failure or multiple failures ? Is the cross region retry configurable at the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-28T20:51:58.81+00:00
Soumya Prateek Raul 70 Reputation points Microsoft Employee
accepted 2025-08-11T05:18:11.3633333+00:00
Soumya Prateek Raul 70 Reputation points Microsoft Employee
1 answer

Unable to Assign Cosmos DB Built-in Data Contributor Role to Azure Function

In Azure Cosmos DB, there is difficulty in assigning the role of Cosmos DB Built-in Data Contributor to an Azure Function. The option to assign this role is not visible. What steps can be taken to resolve this issue?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-09T11:00:49.76+00:00
Sourav Kisku 0 Reputation points
commented 2025-08-11T04:50:43.8666667+00:00
Saraswathi Devadula 10,855 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Unable to Create MongoDB User in Azure Cosmos DB for MongoDB vCore (Tried All Official Methods)

Hello, I'm currently working on setting up secondary users for Azure Cosmos DB for MongoDB vCore (Free Tier), and despite following all the official documentation and community suggestions, I'm still unable to successfully create a new MongoDB user with…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-04T10:00:47.6866667+00:00
Chandan Kumar 20 Reputation points
commented 2025-08-08T22:43:30.7633333+00:00
Jonathan Allbritten 0 Reputation points
1 answer

How to set shared throughput when using API for Table [CosmosDb] using infra-as-code

I am not able to setup my CosmosDb account level througput as code with bicep. It is not available as stated here: https://learn.microsoft.com/en-us/azure/cosmos-db/table/manage-with-bicep To be honest, this isn't a tip but a missing implementation. It…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-24T10:31:21.54+00:00
Wesley van Schaijk 0 Reputation points
commented 2025-08-08T16:27:53.1066667+00:00
Mark Brown - MSFT 2,771 Reputation points Microsoft Employee Moderator
1 answer One of the answers was accepted by the question author.

Unable to create DiskANN vector index

While attempting to create a DiskANN vector index in Azure Cosmos DB, the following error is returned: { "ok": 0.0, "errmsg": "The diskann index is not enabled for this cluster tier", "code": 115, …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-06T07:24:54.93+00:00
Hari 20 Reputation points
accepted 2025-08-08T04:12:52.9366667+00:00
Hari 20 Reputation points
3 answers

when is the Newtonsoft v10.0.2 going to be updated in Microsoft.Azure.Cosmos v3.42. this version of newtonsoft has security vulnerablities

it's simple: when is the Newtonsoft v10.0.2 going to be updated in Microsoft.Azure.Cosmos v3.42. this version of newtonsoft has security vulnerablities and i cannot find any information on when this Newtonsoft vulnerability will be…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2024-08-23T17:34:09.5333333+00:00
Scott F 10 Reputation points
answered 2025-08-07T08:29:21.7033333+00:00
Steve W 0 Reputation points
1 answer

Is the Cosmos DB documentation example on session consistency misleading?

https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels#session-consistency The Cosmos DB documentation example on session consistency states: Whereas the "Australia East" region is using "Session B" so, it receives data…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-08-01T14:16:57.7366667+00:00
AZOK 0 Reputation points
commented 2025-08-06T05:58:28.3166667+00:00
Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

How to connect to Cosmos DB for Mongo using managed identity

I deployed Cosmos DB for Mongo and I can connect using the connection string in Python (for instance). Now I'd like to connect using a user managed identity similar to it is done with Object Storage: cred = DefaultAzureCredentials() client =…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-31T14:52:25.6+00:00
Flavio Duarte 20 Reputation points
accepted 2025-08-06T03:08:09.5433333+00:00
Flavio Duarte 20 Reputation points
0 answers

Intermittent 404's on Cosmos DB Queries

My service started getting 404's returned intermittently on valid queries to one of our Cosmos DB Account. This started on July 8th, 2025. We didn't have a deployment that had the timing lined up with it. We don't have it on our other Accounts with the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-15T23:37:53.0266667+00:00
Jack Quincy 0 Reputation points
edited a comment 2025-08-04T05:36:35.5033333+00:00
Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
1 answer

Azure CosmosDb for MongoDb - vCore : manage users and permissions

Hello, We are currently testing Azure Cosmos DB with the VCore model to manage users, where each user would have specific permissions on individual databases. Unfortunately, it appears that this functionality is not yet supported, which is quite…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2024-09-13T08:06:51.57+00:00
Jaouad IFATSSANE 0 Reputation points
edited a comment 2025-08-03T10:00:03.7566667+00:00
VarunTha 14,860 Reputation points Microsoft External Staff Moderator
1 answer

Need to restrict the cosmos DB accessible from public internet.

I have created CosmosDB instant in Azure. Disabled the public access and associated with private endpoint but still cosmosDB url is accessible through internet. How can I restrict the url accessible from internet? tried with NSG also but no luck. Can…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2024-06-14T15:51:59.84+00:00
Manivel Manickam 0 Reputation points
edited a comment 2025-08-02T08:23:56.8166667+00:00
VarunTha 14,860 Reputation points Microsoft External Staff Moderator
1 answer

CosmosDB, Vector search, diskANN

Trying to experiment with vector search in cosmos db I get an exception: Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: xxx; Reason: (Message:…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2024-06-02T19:55:06.3033333+00:00
Vladimir Nesterovsky 25 Reputation points
edited a comment 2025-08-02T07:07:59.9+00:00
VarunTha 14,860 Reputation points Microsoft External Staff Moderator
2 answers

Azure CosmosDb for MongoDb - vCore // manage users

Hi Does anyone know when support for managing users in CosmosDb for MongoDb vCore will become available ? We are not really happy with giving admin credentials to users and RU model is way too expensive at the moment. thanks AndyB

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2023-09-22T13:19:33.5+00:00
Andy Buckley - CAI 15 Reputation points
edited a comment 2025-08-01T05:49:27.1+00:00
RNareddy 2,505 Reputation points Microsoft External Staff Moderator
0 answers

How to use MSI workload identity to authenticate to CosmosDB Cassandra

Hello, I've provisioned a CosmosDB Cassandra instance, have it configured with private endpoint. the DB is routable/accessible. My question is about using an MSI (either Entra ID Group or a k8s federated Workload Identity to authenticate/authorize…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-21T18:05:26.61+00:00
Jordan Bar (He/him/his) 0 Reputation points
commented 2025-07-31T20:49:10.71+00:00
Oury Ba-MSFT 21,101 Reputation points Microsoft Employee Moderator
1 answer

Unable to create graph objects from COSMOSDB Data Explorer (Gremlin)

Please suggest any action to fix these errors. I set up an account for COSMOSDB and trying to create a graph using Gremlin API. I successfully created a graph DB and tried to create some objects using the Data Explorer. I clicked the new Vertex button…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2025-07-29T15:30:27.1366667+00:00
Lau, Alex 0 Reputation points
commented 2025-07-31T17:04:23.83+00:00
Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
2 answers

Bulk update 100 million+ cosmos records

I have a large collection of data stored in cosmos, ~100 million rows, but it fluctuates higher/lower over time. I would like to change the ‘schema’ of the data to support better reporting capability. In this case I need to add just a single field, which…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,938 questions
asked 2021-06-01T17:13:20.897+00:00
Adam Pliska 1 Reputation point
commented 2025-07-31T06:29:58.26+00:00
Satish Kumar Pujar 0 Reputation points