Microsoft samples
Last updated
Last updated
Get started with the Azure Cosmos DB client library for .NET to create databases, containers, and items within your account. Follow these steps to install the package and try out example code for basic tasks.
An Azure account with an active subscription.
No Azure subscription? You can try Azure Cosmos DB free with no credit card required.
.NET 6.0 or later
Azure Command-Line Interface (CLI) or Azure PowerShell
The cosmos-db-nosql-dotnet-samples GitHub repository includes multiple sample projects. These projects illustrate how to perform common operations on Azure Cosmos DB for NoSQL resources.
An Azure account with an active subscription. Without a credit card or an Azure subscription, you can set up a free Try Azure Cosmos DB account.
Azure Cosmos DB for NoSQL account.
.NET 6.0 or later
Azure Command-Line Interface (CLI) or Azure PowerShell