Junior Azure

What is the preferred .NET SDK for Cosmos DB?

  • Azure.Cosmos NuGet package (v3+) is preferred.
  • Example:

var cosmosClient = new CosmosClient(endpointUri, primaryKey);

var container = cosmosClient.GetContainer("DatabaseId",

"ContainerId");

More from Microsoft Azure Tutorial

All questions for this course