Autoscale Throughput Properties inconsitency in Cosmos DB SDKs

NileshTech 21 Reputation points
2020-07-30T09:40:20.43+00:00

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,456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,576 Reputation points
    2020-07-30T10:21:59.94+00:00

    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