Skip to main content

Questions tagged [azure-cosmosdb]

Azure Cosmos DB is Microsoft's fully managed and serverless distributed database with support for NoSQL and relational workloads. It offers global distribution across all Azure regions transparently replicating your data wherever your users are. Develop applications using open-source database engines, including PostgreSQL, MongoDB, and Cassandra. Get automatic scalability, enterprise-grade security, and cost-effective consumption-based pricing.

-3 votes
0 answers
12 views

For CosmosDB, Is the DatabaseRid the same that the Database name?

I have a CosmosBD, my Resource Group, DBAccount and Database, but i need the DatabaseRid. I dont know where databaseRid is or if it is the same that the databasename. I tried to find it in the ...
user26413740's user avatar
-1 votes
0 answers
12 views

Speed up connection between Azure AppService and CosmosDB

I have an app in Azure AppService and a mongo database in CosmosDB. They are in a same region, but the speed of the queries are much slower compared to a cheap VPS with an installed webserver and ...
RobbeR's user avatar
  • 483
0 votes
0 answers
14 views

Response status code does not indicate success: BadRequest (400); Substatus: 0 for basic CosmosDb insert

My object model: public class PhoneBook { public string Id { get; set; } public string Name { get; set; } public string Description { get; set; } } my Container creation: db....
Stephan Steiner's user avatar
0 votes
0 answers
21 views

"Detect Datetime" setting ignored when using Managed Identity for connecting to CosmosDB Source in ADF Copy activity

In several Azure Data Factory pipelines one of the activity is Copy Activity that uses Azure Cosmos DB for NoSQL as source and Azure Data Lake Storage Gen2 with JSON format as sink. The dates stored ...
amit_g's user avatar
  • 31.2k
0 votes
0 answers
40 views

Trying to work with the ComsosDb Change Feed Reader on an Azure function, how do I define the StartFromTime parameter?

I have an Azure Function that looks like this: [Function("MyCosmosDBTrigger")] public async Task Run([CosmosDBTrigger( databaseName: "myDatabase", containerName: "...
RLH's user avatar
  • 15.5k
0 votes
0 answers
55 views

How to change category name in Categories container and in Products container in CosmosDB? [closed]

I am new in CosmosDB. I want to have two separate containers: Categories and Products. They both have category name. Now I want to change category name from "Devices" to "Electronics&...
MrChudz's user avatar
  • 1,091
0 votes
0 answers
72 views

Error handling in Azure function with custom class

My login function looks like this: [Function("Loginxyz")] public async Task<IActionResult> GenerateToken( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = &...
tesrer's user avatar
  • 51
-1 votes
0 answers
30 views

Bi-directional sync between Dynamo DB and Cosmos DB [closed]

I'm looking for a robust solution for setting up a bi-directional sync / replication between DynamoDB in AWS and Cosmos in Azure. From my search so far, I could not find solution for this. I just ...
user26338327's user avatar
0 votes
1 answer
43 views

How to fetch data in cosmos db for a particular a child value irrespective of which parent it belongs to?

The items I have in cosmos db have large unstructured data. A part of those items contains information which could look like below: object_results": { "read_file": { ...
LearneR's user avatar
  • 2,409
0 votes
0 answers
54 views

How to extract the index of a character's nth occurrence from input string in cosmos DB?

I'm trying to extract different parts of an string input based on the occurrence of a character. Using SUBSTRING and INDEX_OF I was able to extract the first part of the my string. select '...
LearneR's user avatar
  • 2,409
0 votes
1 answer
63 views

How to use IIF in ORDER BY Queries for Azure Cosmos DB

I have items in my cosmosdb and I want to order them by the orderStatus. RECEIVED items will be listed first, then PROCESSING items, and then COMPLETED items. Here is the query I have written. But ...
Harun ERGUL's user avatar
  • 5,862
0 votes
1 answer
40 views

CosmosDB calculated property to get age from date of birth

I'm looking for a way to get the age of a person given their date of birth in CosmosDB. I've read on the docs that they've recently implemented "computed properties" at container level on ...
Vi100's user avatar
  • 4,173
0 votes
0 answers
39 views

CosmosDB with PyMongo replaces the array field in document with literal array filter subdocument

I'm using the CosmosDB on Azure with MongoDbApi. In my Flask service I use pymongo. My collection consists of a documents similar to this: { "file_name": "foo", "date&...
777moneymaker's user avatar
0 votes
1 answer
25 views

Is it possible to use Dynamic Parameter with SqlQuery in Cosmos DB input binding

Is it possible to have parameter passed to SQLQuery if yes how. public async Task<string> SomeFunction ([ActivityTrigger] string input, [CosmosDBInput( databaseName:"dbname"...
redar ismail's user avatar
1 vote
1 answer
30 views

Is there another solution for deprecated UriFactory.CreateDocumentUri in cosmosDb?

I am using UpsertItemAsync to create a document and I need to get the uri to that created document, is there some replacement for deprecated CreateDocumentUri or I have to do it manually?
RheinmetallSkorpion's user avatar

15 30 50 per page
1
2 3 4 5
512