Developing a .NET Core console app using DocumentDB

This sample shows you how to use the Microsoft Azure DocumentDB service to store and access data from a .NET Core console application.

For a complete end-to-end walkthrough of creating this application, please refer to the full tutorial on the Azure documentation page.

Running this sample

  1. Before you can run this sample, you must have the following prerequisites:
  1. Clone this repository using Git for Windows (http://www.git-scm.com/), or download the zip file.

  2. If using the DocumentDB Emulator, please follow instructions at Azure DocumentDB Emulator to install and start the emulator.

If using your Azure DocumentDB account, please substitute the endpoint and authorization key in Program.cs with your account's details.

  1. From a command prompt or shell, run dotnet restore followed by dotnet run to run the sample.

About the code

The code included in this sample is intended to get you quickly started with a .NET Core console application that connects to Azure DocumentDB.

More information