TIP

💡 Learn more : Azure Cosmos DB.

Use Visual Studio Code to work with Cosmos DB

What is Cosmos DB? Azure Cosmos DB is Microsoft's globally distributed, multi-model database. For more info visit this page.

Something that I wasn't aware of until yesterday is the Visual Studio Code extension for Azure Cosmos DB.

You can easily view, create and delete databases, collections, graphs, and documents, along with other things detailed in their marketplace submission.

After installing it via the extension above, here is what it looks like to setup our Cosmos DB resource and type from within Visual Studio Code.

Now we'll setup our database and collection.

Finally, we'll create a document and add the following data to it.

{
    "name": "learn cosmos db",
}
1
2
3