1,788 questions with Azure Cosmos DB tags

Sort by: Updated
1 answer

409 Conflict error using multi-write regions

Hello, I'm currently trying to understand how to implement conflict resolution in my project. I'm trying to create conflicts to test my stored procedures but I keep receiving the error 409 Conflict with the following message: "Entity with the…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-14T03:41:15.1633333+00:00
João Pereira 0 Reputation points
answered 2025-03-14T03:47:37.8+00:00
Vinodh247 29,781 Reputation points MVP
1 answer

Is there any way to connect azure blob storage container with azure cosmose Db for mongodb vcore for vectore stor?

Hi, is there any way to connect azure blob storage container with azure cosmos DB for MONGODB VOCRE to create an vector index on it. I want to create a Vector index inside azure cosmosdb for MONGODB vcore on my pdfs in azure blob storage container,…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-13T18:23:35.7866667+00:00
Ahmad Shafiq 170 Reputation points
answered 2025-03-13T20:07:35.4366667+00:00
hossein jalilian 10,100 Reputation points
1 answer One of the answers was accepted by the question author.

How to make an index In azure cosmos DB just Like Azure AI Search?

I want to create an Index inside my azure cosmos DB just like an azure AI Search Index, So that I can use that Index with Azure Open AI Rest API?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-11T08:34:18.35+00:00
Ahmad Shafiq 170 Reputation points
accepted 2025-03-13T18:15:19.3366667+00:00
Ahmad Shafiq 170 Reputation points
3 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,788 questions
asked 2025-03-09T19:21:55.0233333+00:00
William Macedo Marcondes 5 Reputation points
answered 2025-03-13T15:44:09.6833333+00:00
William Macedo Marcondes 5 Reputation points
0 answers

Cosmos DB Diagnostic Logs Not showing up RUs for Create operations

I am using CosmosDB for a while now, and I would like to take advantage of diagnostic logs to keep an eye on RU usage. Query logs work fine, HOWEVER my create requests are being logged with requestcharge equal to 0. Does anyone have any idea why that…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-02-21T14:33:29.31+00:00
TUDOR33SUD14 5 Reputation points
commented 2025-03-13T05:12:57.6666667+00:00
ShaktiSingh-MSFT 16,251 Reputation points
1 answer

Linq Cosmos DB ArgumentNullException Exception

I am using LinQ on the client side to query Cosmos DB. All the other properties work fine except two properties. One is the "id" and the other is the "RowKey". I manually checked the database, the type of RowKeys are all string, they…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,338 questions
asked 2025-01-29T19:13:20.8733333+00:00
Yi Gu 0 Reputation points Microsoft Employee
commented 2025-03-12T18:18:25.46+00:00
Yi Gu 0 Reputation points Microsoft Employee
1 answer

CosmosDB - Diagnostics in dotnet v3 SDK

Hello,   We are using CosmosDB dotnet v3 SDK and we are fetching around 550kb of data in one query. Here is a gist of the code: We noticed that the “ReadNextAsync()” method takes 180ms to execute. After closer examinations of the diagnostics, we can see…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-02-28T14:43:58.66+00:00
banto 0 Reputation points
commented 2025-03-12T17:36:42.0233333+00:00
Oury Ba-MSFT 20,446 Reputation points Microsoft Employee
1 answer

Unable to connect to Cosmos DB today

Our application wasn't able to connect to Cosmos DB today, 2025-02-13, from around 3:00 AM to 3:30 AM Pacific Time GMT-8. We're using the Mongo API, the errors are: MongoDB.Driver.MongoWriteException: A write operation resulted in an error. WriteError: {…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-02-13T15:22:12.6066667+00:00
Humberto Oliveros 0 Reputation points
commented 2025-03-12T14:31:32.29+00:00
Vijayalaxmi Kattimani 1,720 Reputation points Microsoft External Staff
4 answers

Can't connect to free tier mongo cluster

I am trying to connect to my Free Tier mongo cluster. Through MongoDB Compass I get this error: Server record does not share hostname with parent URI. It seems like a DNS issue, anyone else who has encountered the same issue?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2024-12-08T20:00:41.4566667+00:00
Michael Katsoulakis 0 Reputation points
answered 2025-03-12T12:00:32.4033333+00:00
peoplelab 0 Reputation points
1 answer

Azure CosmosDB - pymongo.errors.ServerSelectionTimeoutError: encoding with 'idna' codec failed

I am following the official Azure documentation to build a Travel AI Agent using Python, FastAPI, and Azure CosmosDB (MongoDB API) as the database. The project involves storing and retrieving travel-related data using CosmosDB as the vector store.…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-07T13:41:07.34+00:00
saurabh pophare 0 Reputation points
commented 2025-03-12T04:46:11.2133333+00:00
PratikLad 240 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Prevent application failure by upgrading to the minimum recommended version (4.48.2) of the Azure Cosmos DB Java SDK by 31 March 2025

Hello, I have Azure function app which uses .NET, cosmos db client and cosmos db. I am seeing following message in cosmos db in azure portal. "Prevent application failure by upgrading to the minimum recommended version (4.48.2) of the Azure Cosmos…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-09T23:59:36.8166667+00:00
Pkp 25 Reputation points
accepted 2025-03-11T19:03:01.09+00:00
Pkp 25 Reputation points
1 answer

CosmosDB Metric Autoscaled RU not returning any data, per partition per region is enabled

CosmosDB Metric Autoscaled RU not returning any data, it has in the past. Per partition per region scaling/feature is enabled.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-07T16:41:13.67+00:00
Howard, Melora 0 Reputation points
commented 2025-03-11T16:25:03.1733333+00:00
Mahesh Kurva 3,085 Reputation points Microsoft External Staff
0 answers

CosmosDB cannot read out documents with URL encoded IDs

We had a Cosmos DB account and in one of the containers some of the documents have URL encoded IDs, e.g.: rfq_123_%28test%29 meaning "rfq_123_(test)". I'm no fan of url encoded IDs, but I'm just supporting the project and it's too late to…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2024-07-25T12:25:38.28+00:00
Mikkel 10 Reputation points
commented 2025-03-11T12:30:59.2266667+00:00
Mo 0 Reputation points
1 answer One of the answers was accepted by the question author.

Azure stream analytics

I get this error when I want to display the data generated from this script

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
698 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
384 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
427 questions
asked 2023-10-19T13:35:01.65+00:00
Given Mnisi 40 Reputation points
commented 2025-03-10T18:52:01.63+00:00
Prakash Mj 20 Reputation points
1 answer

Unable to create CosmosDB Account in East US, East US2, and West US2

I need to create a CosmosDB account in one of the following regions: East US, East US2, and West US2, but is unable to do so. Any solution to it?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-07T21:35:43.11+00:00
Amy Sun 0 Reputation points
commented 2025-03-10T16:56:26.91+00:00
Mahesh Kurva 3,085 Reputation points Microsoft External Staff
1 answer

Request for Data Restore in Azure Cosmos DB for MongoDB Collection

Hello, We have encountered a critical issue with our Azure Cosmos DB for MongoDB account. On March 6, 2025, we accidentally deleted all document data from one of our collections. We need assistance in restoring the deleted data from the backup covering…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-07T09:16:29.2466667+00:00
chenna keshava vani 0 Reputation points
answered 2025-03-07T10:17:15.9966667+00:00
Adithya Prasad K 90 Reputation points Microsoft External Staff
0 answers

How can I attach a public IP and enable public access to a Cosmos DB instance initially set to Private Access?

As said in title, I've got a client looking to temporarily enable public access to their Cosmos DB clusters that were initially configured with private access only. The documentation I've found suggests creating a rule under Networking to allow public…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-04T16:11:55.9366667+00:00
mv-ltch 0 Reputation points
commented 2025-03-06T19:20:09.63+00:00
Prasad Chaganti 80 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

azure_ai extension on Azure Cosmos DB for PostgreSQL Cluster

Hello - is there guidance on installing the azure_ai extension on Azure Cosmos DB for PostgreSQL Cluster?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-02-28T15:28:53.3333333+00:00
Matt Hofmann 20 Reputation points
accepted 2025-03-05T12:44:02.3933333+00:00
Matt Hofmann 20 Reputation points
1 answer

I accidentally did irreversible changes to Cosmos DB container, backup setting is not setup

I have made changes to the container in Cosmos DB, not having backup policy setup and need to revert the changes back. How can I do it?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-03-03T14:29:45.0833333+00:00
Aleksandr Glushko 0 Reputation points
commented 2025-03-05T08:41:04.3933333+00:00
Adithya Prasad K 90 Reputation points Microsoft External Staff
2 answers

How to disable the Materialized Views for NoSQL API (preview) in CosmosDB?

I have a CosmosDB with NOSQL API and I would like to turn on the Continuous backup. I am receiving the error that it cannot be turned on due to the active Materialized Views for NoSQL API. In Settings/Features I can indeed see the feature active, but I…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,788 questions
asked 2025-02-26T06:53:03.9366667+00:00
Čončka Jan 0 Reputation points
answered 2025-03-05T05:23:14.4133333+00:00
ShaktiSingh-MSFT 16,251 Reputation points