DEV Community

Cover image for Using VS Code to work with Cosmos DB
Burke Holland for Microsoft Azure

Posted on

3 1

Using VS Code to work with Cosmos DB

We've selected our favorite tips and tricks created by Michael Crump and are delivering fresh technical content on Azure all April! Miss a day (or more)? Catch up with the series.

Don't have Azure? Grab a free subscription.

What is Cosmos DB? Azure Cosmos DB is Microsoft's globally distributed, multi-model database.

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

Download the Cosmos DB Extension for VS Code

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

Now we'll set up our database and collection.

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

{
    "name": "learn cosmos db",
}
Enter fullscreen mode Exit fullscreen mode

Want more VS Code? Check out our quickstarts and tutorials!


We'll be posting articles every day in April, so stay tuned or jump ahead and check out more tips and tricks now.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (1)

Collapse
 
stephen__steve profile image
stephen steve •

Is there a way to run queries from vscode ?

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay