November 19th, 2024

Announcing Public Preview: VS Code Extension for Azure Cosmos DB

We’re excited to announce the public preview of the latest update to the Azure Databases Visual Studio Code extension, which brings the full power of Azure Cosmos DB to your favorite editor! This extension integrates a robust GUI right into Visual Studio Code, allowing you to connect, query, and manage your Azure Cosmos DB resources seamlessly. This new addition speeds up your workflow, enhances security, and boosts efficiency. 

What Does the Extension Offer? 

With this extension, handling your Azure Cosmos DB workloads is simpler and faster. Here’s what’s now at your fingertips: 

  • Seamless Connections: 
    • Azure Cosmos DB for MongoDB and NoSQL: Effortlessly connect to your Azure Cosmos DB resources, with built-in authentication for NoSQL via Microsoft Entra ID, and secure access for MongoDB through username-password configurations. 
    • External MongoDB Clusters: Connect to any MongoDB cluster using a connection string. 
  • Intuitive Data Management: 
    • Execute Queries: Run queries directly within VS Code, with options to view results in JSON, table, or tree views for efficient data exploration. 
    • Real-Time Document Editing: Instantly edit, insert, delete, or update documents, with changes executed in real time. 
    • Create and Drop Databases/Collections: Set up or clean up databases and collections directly from the extension interface. 
  • Efficient Data Import/Export: 
    • Import from JSON: Quickly bring in data from JSON files to start working immediately. 
    • Export Data: In Azure Cosmos DB for MongoDB (vCore), you can download query results or collections as JSON or CSV files, perfect for backups and data sharing. 
  • Advanced Query Metrics (NoSQL API): 
    • Use query metrics to view insights on your NoSQL query and index performance, allowing for quick optimization directly within the editor. 
  • MongoDB Shell (mongosh) Integration: 
    • Execute advanced MongoDB commands right from VS Code, with seamless access to mongosh for those needing command-line interactions.

Image nosql mongovcoregif

Getting Started 

To get started with the Azure Databases Visual Studio Code Extension for Azure Cosmos DB, follow these simple steps: 

  1. Install the Extension: Install the Azure Databases extension from VS code marketplace. 
  2. Sign in to Your Azure Account: Sign in with your Azure credentials in visual studio code. This will automatically display your Azure Cosmos DB resources in the Azure Resources panel. 
  3. Connect to Your Azure Cosmos DB Resource: For Azure Cosmos DB for NoSQL, Azure Cosmos DB for MongoDB (RU), and Azure Cosmos DB for MongoDB (vCore), select your desired database or cluster from the Azure Resources tree. 
  4. Connect any MongoDB Clusters: To connect to any MongoDB cluster, select the MongoDB Cluster Accounts branch in the Workspace section. When prompted, paste your MongoDB connection string into the field that appears. 
  5. Start Managing Your Data: From the extension, you can run queries, edit documents, view data in JSON, Table, or Tree views, and manage databases and collections directly within VS Code. 

To learn more and explore all the features, check out the full documentation at https://aka.ms/CosmosDBDevTooling. 

Your Feedback is Vital  

As this is a public preview, you might notice a few rough edges. We value your feedback, so please share any thoughts, bugs, or improvements that come to mind. Your input will directly shape future versions of this extension. Reach out anytime at cosmosdbdevtooling@service.microsoft.com or use the “Report Issue” in the “Help and Feedback” section of the extension.  

Leave a review 

Tell us about your Azure Cosmos DB experience! Leave a review on PeerSpot and we’ll gift you $50. Get started here. 

About Azure Cosmos DB 

Azure Cosmos DB is a fully managed and serverless NoSQL and vector database for modern app development, including AI applications. With its SLA-backed speed and availability as well as instant dynamic scalability, it is ideal for real-time NoSQL and MongoDB applications that require high performance and distributed computing over massive volumes of NoSQL and vector data. 

Try Azure Cosmos DB for free here. To stay in the loop on Azure Cosmos DB updates, follow us on X, YouTube, and LinkedIn. 

Author

Khelan Modi
Product Manager

Hey there! I'm Khelan Modi, Product Manager at Azure Cosmos DB. My mission is to build a better versatile-Core for our cosmic universe! Join me on this cosmic journey from Redmond, and together, we'll shoot for the stars! 🌠 Let's connect and explore the wonders of cloud tech!

Estefani Arroyo
Program Manager

Estefani is a Program Manager on the Azure Cosmos DB team focusing on our monitoring, desktop tooling, and SDK experiences.

0 comments

Discussion are closed.