Azure Tips and Tricks Part 65 - Use Visual Studio Code to work with Cosmos DB
Intro
Most folks aren’t aware of how powerful the Azure platform really is. As I’ve been presenting topics on Azure, I’ve had many people say, “How did you do that?” So I’ll be documenting my tips and tricks for Azure in these posts.
The Complete List of Azure Tips and Tricks
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",
}
Now we’re ready to begin work!
Want more Azure Tips and Tricks?
If you’d like to learn more Azure Tips and Tricks, then follow me on twitter or stay tuned to this blog! I’d also love to hear your tips and tricks for working in Azure, just leave a comment below.
Leave a Comment