Share via

Autoscale Throughput Properties inconsitency in Cosmos DB SDKs

NileshTech 21 Reputation points
30 Jul 2020, 9:40 am

I am using below link to create a console application, it is working fine. But when i add below properties it throws compile error. I have further checks to do but not able to proceed here.

https://learn.microsoft.com/en-us/azure/cosmos-db/create-sql-api-dotnet-v4

14575-image.png

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,680 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,606 Reputation points
    30 Jul 2020, 10:21 am

    Hi @NileshTech-7256, thanks for reaching out to us. This looks like problem with not using correct package/library.

    Can you please check your solution and see which packages or references it is using?

    Mostly the document you are referring to is using Azure.Cosmos package with version 4.0 whereas the ThroughputProperties class mentioned in example should be using Microsoft.Azure.Cosmos with version 3.11.0.

    You can use below command to include this package in your solution by running through command prompt:
    dotnet add package Microsoft.Azure.Cosmos --version 3.11.0

    Or else you can install it using Nuget Manage Console or through Manage Nuget package in visual studio by searching through the same package.

    Please let us know if this helps.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.