DocumentDB - Environment Setup

Microsoft provides a free version of Visual Studio which also contains SQL Server and it can be downloaded from


Step 1 − Once downloading is completed, run the installer. The following dialog will be displayed.


Step 2 − Click on the Install button and it will start the installation process.

Installation Process

Step 3 − Once the installation process is completed successfully, you will see the following dialog.

Restart Now

Step 4 − Close this dialog and restart your computer if required.

Step 5 − Now open Visual studio from start Menu which will open the below dialog. It will take some time for the first time only for preparation.

open visual studio

Once all is done, you will see the main window of Visual Studio.

Main Window

Step 6 − Let’s create a new project from File → New → Project.

Create New Project

Step 7 − Select Console Application, enter DocumentDBDemo in the Name field and click OK button.

Step 8 − In solution Explorer, right-click on your project.

Right click on project

Step 9 − Select Manage NuGet Packages which will open the following window in Visual Studio and in the Search Online input box, search for DocumentDB Client Library.

Manage NuGet Packages

Step 10 − Install the latest version by clicking the install button.

License Acceptance

Step 11 − Click “I Accept”. Once installation is done you will see the message in your output window.

Start Application

You are now ready to start your application.