2,006 questions with Azure Cosmos DB tags

Sort by: Updated
1 answer

How to use update a cosmos db document using rest call

Hi, I want to update a cosmos db document using available cosmodb rest api. Can you provide me a sample code or documentation for the same. Thanks

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-13T01:23:39.9933333+00:00
Saurabh Sharma 23,866 Reputation points Microsoft Employee Moderator
answered 2025-11-13T01:24:24.7233333+00:00
Q&A Assist
1 answer

Azure Cosmos DB for PostgreSQL future?

I'm seeing a notification on all the Azure Cosmos DB for PostgreSQL documentation in learn.microsoft.com saying: Azure Cosmos DB for PostgreSQL is no longer supported for new projects. I've done a few searches, but haven't seen any other announcements…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-13T00:45:01.3233333+00:00
Tim Brown 0 Reputation points
answered 2025-11-13T00:45:09.4466667+00:00
Q&A Assist
4 answers

Missing Cosmos DB Built-in Data Reader and Cosmos DB Built-in Data Contributor roles in Access Control (IAM)

I'm trying to assign roles to managed identity in Cosmos DB, through browser using Access Control (IAM). Unfortunately two build in roles Cosmos DB Built-in Data Reader and Cosmos DB Built-in Data Contributor are not there. How can I add managed…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
1,049 questions
Microsoft Security | Microsoft Identity Manager
asked 2023-02-01T15:31:32.8+00:00
Jacek Przezdziecki (ext) 25 Reputation points
commented 2025-11-12T21:55:29.84+00:00
Anand Chowdary 0 Reputation points
1 answer

Alternative to VACUUM FULL for TOAST space reclamation on Azure Cosmos DB for PostgreSQL (Citus)

Problem Summary We have an Azure Cosmos DB for PostgreSQL (Citus) cluster with significant TOAST table bloat (120 GB) that we'd like to reclaim. However, we operate a 24/7 production system and cannot accept any downtime. Environment Service: Azure…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-11T16:56:31.7933333+00:00
cs 0 Reputation points
commented 2025-11-12T21:40:42.68+00:00
Swapnesh Panchal 845 Reputation points Microsoft External Staff Moderator
1 answer

Cosmos DB for MongoDB (vCore) upgrade M10→M30 stuck in “Updating” ~3 hour; data plane very slow/timeouts

Hi Microsoft team, I’m seeing a prolonged “Updating” state after scaling a Cosmos DB for MongoDB (vCore) cluster from M10 → M30, and my app is experiencing severe slowness/timeouts during the window. Environment Service: Azure Cosmos DB for MongoDB…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-11T20:20:16.8266667+00:00
Brian Peach 0 Reputation points
commented 2025-11-12T18:40:21.28+00:00
Abhisek Mishra 940 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Cosmos DB data replication with a second region stuck at "Updating" now for over 3 days

We have four subscriptions on a single Azure tenant, all have separate cosmos accounts and are in the UK South region. We wanted to simply try out global data replication using a second ("UK West") read region on our sandbox subscription…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-28T17:36:23.3233333+00:00
Marty Barr 20 Reputation points
accepted 2025-11-12T17:21:49.74+00:00
Marty Barr 20 Reputation points
1 answer

Cosmo DB is Missing data

Dear Team, Greetings!!! We are facing a critical issue with Azure Cosmos DB. Data has been lost unexpectedly. Around 16 users have access and we are unsure how the data was deleted or lost. We request Microsoft Support to investigate and help us recover…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-10T16:48:29.48+00:00
The Skill Enhancers 0 Reputation points
answered 2025-11-10T16:49:05.1133333+00:00
Q&A Assist
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.
2,006 questions
asked 2025-08-09T11:00:49.76+00:00
Sourav Kisku 5 Reputation points
commented 2025-11-10T13:29:03.8066667+00:00
Arjun 0 Reputation points
3 answers

CosmosDB emulator not responding

After last windows update(2025-10 Cumulative Update for Windows 11, version 25H2 for x64-based Systems (KB5066835) (26200.6899) emulator not working. Started without any errors, but opened page is unreachable: Reproduced on couple machines. Tried…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-15T21:20:25.6266667+00:00
Arkadii Hryshko 46 Reputation points Microsoft Employee
commented 2025-11-10T01:38:20.07+00:00
AdamMauger-6341 0 Reputation points
2 answers One of the answers was accepted by the question author.

Cannot view data in the Azure Cosmos DB Data Explorer in Chrome

Using Chrome, I was previously able to view data in my Cosmos Databases using the Data Explorer in Azure. However, ever since the Azure outage on October 29th, 2025, the data never loads - it just spins. In the browser console, I can see that I'm…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-31T17:51:16.1366667+00:00
Chad Lansford 20 Reputation points
accepted 2025-11-07T19:22:34.71+00:00
Chad Lansford 20 Reputation points
1 answer

CosmosDB , how to get the partition key

Hello , Do we have a guide as to how to set the partitionkey in CosmosDB ? Thanks Himanshu

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-05T18:45:09.3566667+00:00
HimanshuSinha 19,527 Reputation points Microsoft Employee Moderator
commented 2025-11-07T00:48:55.5366667+00:00
Swapnesh Panchal 845 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to drop a Gremlin vertex that contains "/" in the id field.

I cannot drop vertices that contain the "/" character in the id field. I get an error message…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-16T17:32:44.3533333+00:00
Jason Koncsol 20 Reputation points Microsoft Employee
accepted 2025-11-06T21:59:29.6233333+00:00
Jason Koncsol 20 Reputation points Microsoft Employee
1 answer

MongoDB cluster stuck in 'Updating' state for 1+ hour, cannot connect

Service: Azure Cosmos DB Problem type: Connectivity Summary: "MongoDB cluster stuck in 'Updating' state for 1+ hour, cannot connect" Details: Started: 2025-11-06 12:26:52 UTC - Error: "Operation stuck in 'Updating' state, blocking…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-06T13:31:04.87+00:00
Nico 0 Reputation points
answered 2025-11-06T14:53:48.29+00:00
Manoj Kumar Boyini 685 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Not able to enable Customer Managed Key (CMK)

I want to enable Customer Managed Key (CMK) to Azure Cosmos DB, for that I have created key in azure key vault in the same region as Azure Cosmos DB present. I have followed all the steps still get below issue when applying CMK on Azure Cosmos DB …

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-04T06:55:32.3833333+00:00
Sameer Datta 20 Reputation points
accepted 2025-11-05T10:57:49.1566667+00:00
Sameer Datta 20 Reputation points
1 answer

How to enable Copilot for Cosmos DB?

I've followed the instructions listed in this doc: enable at the subscription level But I don't see the Query faster with Copilot card in the Data Explorer. Is there any other step or requirement to fulfill?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-11-04T13:34:13.43+00:00
FA 10 Reputation points
answered 2025-11-04T18:16:25.5733333+00:00
Pilladi Padma Sai Manisha 265 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

error in portal query: Authorization header doesn't confirm to the required format. Please verify and try again. ActivityId: 89881f95-402e-4aa3-b2f8-42bdd85c55fc, Windows/10.0.20348 cosmos-netstandard-sdk/3.18.0

Hello everyone, I am trying to perform queries in Cosmos DB as I have always been doing, however it gives me the following error that I do not understand: Authorization header doesn't confirm to the required format. Please verify and try…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-01-06T15:40:30.4833333+00:00
Jose Garcia Anticona 45 Reputation points
commented 2025-11-04T15:44:07.7633333+00:00
SU Yauhen Zdanovich 0 Reputation points
2 answers

CosmosDB TTL changes:Data Masking Policy is not enabled on this account

Hi, I am trying to update the TTL setting on the existing CosmosDB container, but I receive the following error message. Do you know how to fix it and why it is happening Failed to update container TestTTL: Message:…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-28T20:38:52.8566667+00:00
Harpreet Gill 0 Reputation points
commented 2025-11-03T11:14:41.9766667+00:00
Mahesh Kurva 9,885 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Access my resource through application

Hi I want to disable public network access on my Cosmos DB resource and use a private endpoint to ensure a secure connection. For testing, I created a virtual machine to check connectivity and ran the nslookup command, which worked. Now, I would like to…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-28T05:25:56.7+00:00
Prateek Singh 20 Reputation points
accepted 2025-11-02T06:07:00.7466667+00:00
Prateek Singh 20 Reputation points
2 answers One of the answers was accepted by the question author.

Is MONGO_OIDC available on Azure CosmosDB for MongoDB RU version

Hello! My team is using Azure Cosmos DB for MongoDB RU and we want to connect from our apps to our database using Microsoft Entra ID (i.e. via OIDC using a ManagedIdentityCredential). We came across an article (here) that describes how to use the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-27T18:01:00.3333333+00:00
Monica Suh 40 Reputation points
accepted 2025-10-30T13:45:34.64+00:00
Monica Suh 40 Reputation points
1 answer

I had Microsoft Azure exam, I faced service issue and it was showing as Microsoft site was under maintenance,So can you please help me reschedule my exam

On 29 th December at 10PM had a exam, When I tried to check in into the exam it was showing error page by saying that Microsoft was under maintenance, Can you please reschedule my exam for today?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
2,006 questions
asked 2025-10-30T04:07:10.4566667+00:00
Sarika Gevadi 0 Reputation points
answered 2025-10-30T09:59:03.75+00:00
Julian Sharp 3,976 Reputation points