Using Azure Cosmos DB in Visual Studio

Besides controlling Azure Cosmos DB in the portal, you are able to access it directly in your code and IDE, such as Visual Studio. Like many other services, you can use Cloud Explorer to browse all available instances of this database available within your subscription:

Now let's try to communicate with it from a simple application. While initially an instance of Cosmos DB is empty, we can quickly add a table to it.

In this section, we will work with the table API in Cosmos DB. If you would like to work with any other type, you will have to consult tutorials in the Further reading section.

Consider ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.