azure-cosmosdb Questions

4

Solved

Have have following partion id on my container: /vesselId I am trying to add a collection of this object: public class CoachVessel { [JsonProperty("id")] public string vesselId { get; s...
Vertigo asked 8/7, 2020 at 14:46

5

Solved

I am trying to create a cosmos DB account using Azure CLI. One of required policies I have to comply with is "Cosmos DB database accounts should have local authentication methods disabled&quot...
Schoolbook asked 25/1, 2022 at 13:45

3

I create a Managed Identity for a Function app and assigned it to DocumentDB Account Contributor by following the two sections below https://learn.microsoft.com/en-us/azure/cosmos-db/managed-identi...

4

Solved

Considering the document { "userName": "user1" } stored in the User collection, and the following User class: public class User { public string Id { get; set; } public string UserName { get; se...
Bonesetter asked 27/5, 2016 at 18:2

4

Solved

I have a bit of a problem using Microsoft.Azure.Cosmos version 3.2.0, upon running await this.Container.CreateItemAsync<LogEntity>(logEntity, new PartitionKey("anythingIPutHere")); ...
Weapon asked 26/9, 2019 at 17:13

6

Solved

If go to https://portal.azure.com, open our Azure Cosmos DB account (1) --> Data Explorer (2) --> Click on users (3) --> Click on New SQL Query: Azure will open a text box to enter a Quer...
Lukin asked 17/8, 2019 at 20:28

5

Solved

Can I write an UPDATE statement for Azure Cosmos DB? The SQL API supports queries, but what about updates? In particular, I am looking to update documents without having to retrieve the whole docu...
Heartworm asked 15/5, 2019 at 18:23

2

We are using Azure cosmos client V3. For fetching data we are using GetItemLinqQueryable and ToFeedIterator for making it Async. It works well however while mocking/unit testing we are getting erro...
Moral asked 3/10, 2019 at 5:15

2

Solved

I have a CosmosDB in Azure, I want to give a user access to read the data inside various collections. I tried giving them the 'Reader'-role, it let them se that there existed a CosmosDB, and they c...
Messick asked 3/7, 2020 at 8:54

3

Solved

If I don't have the partition key value, how do I delete a document? I have the id of the document and the property name of the partition key (in my case: type). I tried: var docLink = UriFactor...
Certify asked 18/8, 2018 at 2:27

5

Solved

I have a .NET Core 3.1 API Project which has Cosmos DB storage being handled via Entity Framework (Microsoft.EntityFrameworkCore.Cosmos - v3.1.5). I have a database model: [JsonObject(NamingStrateg...
Canaster asked 22/6, 2020 at 10:42

5

Our Azure Cosmos DB collection has gotten large enough to require a partition key. In doing some reading about this, I get the impression that the best partition key is one that provides for even d...
Whitesmith asked 27/6, 2018 at 21:1

5

I am new to cosmos db. I chose cosmos db (core sql), created a database having two containers say EmployeeContainer and DepartmentContainer. Now I want to query these two container and want to fetc...
Hesper asked 22/6, 2020 at 10:40

4

Solved

What is the best way to get POCO's from a Gremlin.Net response? Right now I manually cast to dictionaries: var results = await gremlinClient.SubmitAsync<Dictionary<string, object>>("g...
Odin asked 30/3, 2018 at 18:38

12

Solved

I was following a walkthrough from microsoft learning on how to add an input binding with CosmosDb for an azure function, however when calling the function it keeps returning internal server error ...
Caustic asked 24/5, 2020 at 15:19

3

Solved

I use Cosmos Db and I need results to be sorted by the results of a COUNT. Instead of sorting the results each time myself (or create a service for it), I prefer having the results sorted directl...
Yasminyasmine asked 21/11, 2019 at 10:59

1

Solved

I am using the portal to create an HttpTriggered Azure Function that should insert a document in CosmosDB. I use all the defaults and when I configure the binding for output to Cosmos, I use the in...
Laguna asked 20/9, 2023 at 15:26

4

Solved

With Cosmos DB for MongoDB API (Version 3.4), the following find query in combination with the method cursor sort seems to behave incorrectly: db.test.find({"field1": "value1"}).sort({"field2": 1}...
Havre asked 11/7, 2019 at 12:2

2

Solved

I built a simple player-tracking API app in ASP.NET Core 3.1 that uses Azure Cosmos DB as its back end. The API to create a new player entry first checks if an entry with the same ID under a give...

3

Based on PR: https://github.com/terraform-providers/terraform-provider-azurerm/pull/5325 azurerm provider version 1.42.0 is required so as to by default install the cosmosdb account with server ver...
Educational asked 24/8, 2020 at 7:1

5

I'm trying to perform a case insensitive search using the C# Cosmos SDK, v3.11.0. From reading the CosmosDB blog post the SQL API now supports this - but I can't get it to work using the SDK. The r...
Chemosynthesis asked 21/7, 2020 at 11:35

6

I having the same error icrosoft.Azure.Documents.DocumentClientException: Message: {"Errors":["Owner resource does not exist"]} , this is my scenario. When I deployed my webapp to Azure and try to ...
Usance asked 21/4, 2017 at 20:17

3

Solved

I am building an Web API with .NET core using GraphQL and DocumentDb. In theory, GraphQL is optimized the data is shipped across the network and thus avoid over-fetching data. But I recognize that...
Urease asked 17/6, 2020 at 7:2

3

Solved

I have the following result in my document. I wanted to update the property value for "Type" and "Workout", such that it doesn't effect other values "PartyId": 10114795, "WorkoutId": 4, "Type": "h...
Omen asked 5/4, 2017 at 16:31

3

Solved

I use cosmos db for sesseion store in node.js. And cosmos db version is 3.6 . I execute follwing code. const expressSession = require("express-session"); const MongoStore = require("connect-mongo...
Boulevard asked 8/1, 2020 at 2:45

© 2022 - 2024 — McMap. All rights reserved.