{"id":11211,"date":"2025-11-18T08:00:47","date_gmt":"2025-11-18T16:00:47","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=11211"},"modified":"2025-12-10T02:24:54","modified_gmt":"2025-12-10T10:24:54","slug":"azure-cosmos-db-extension-for-vs-code-now-generally-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/azure-cosmos-db-extension-for-vs-code-now-generally-available\/","title":{"rendered":"Azure Cosmos DB Extension for VS Code Now Generally Available"},"content":{"rendered":"<p>We\u2019re thrilled to announce the <strong>general availability (GA)<\/strong> of the <strong>Azure Cosmos DB extension for Visual Studio Code<\/strong>! This powerful extension brings enterprise-grade database management directly into your development environment, making it easier than ever to build, test, and deploy applications powered by Azure Cosmos DB.<\/p>\n<p>&nbsp;<\/p>\n<p><center><iframe title=\"Azure Cosmos DB VS Code Extension is GA! Build Faster, Smarter, AI-Ready Apps\" src=\"https:\/\/www.youtube.com\/embed\/3NUcO3NYBgA\" width=\"934\" height=\"526\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/center><\/p>\n<h2>Why This Matters for Azure Cosmos DB Developers<\/h2>\n<p>As a Cosmos DB developer, you know the importance of <strong>rapid iteration<\/strong> and <strong>seamless workflows<\/strong>. The Azure Cosmos DB VS Code extension eliminates context switching by bringing your database management tools directly into your IDE. Here\u2019s what you can do <strong>without leaving VS Code<\/strong>:<\/p>\n<h2 class=\"wp-block-heading\">Core Capabilities<\/h2>\n<ul class=\"wp-block-list\">\n<li>\ud83d\udcca <strong>Browse and Explore<\/strong>: Navigate through your Cosmos DB accounts, databases, containers, and items with an intuitive tree view<\/li>\n<li>\ud83d\udd0d <strong>Query and Inspect<\/strong>: Run queries directly against your containers and view results in a rich, formatted interface<\/li>\n<li>\u270f\ufe0f <strong>CRUD Operations<\/strong>: Create, read, update, and delete items with ease<\/li>\n<li>\ud83c\udfe0 <strong>Local Development<\/strong>: Seamlessly connect to the Azure Cosmos DB Emulator for cost-free local development and testing<\/li>\n<li>\ud83c\udf10 <strong>Multi-Account Management<\/strong>: Switch between production, staging, and development accounts effortlessly<\/li>\n<li>\ud83d\udcc8 <strong>Monitor and Optimize<\/strong>: View container metrics, throughput settings, and partition key strategies<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Developer Productivity Wins<\/h2>\n<ul class=\"wp-block-list\">\n<li>IntelliSense support for Cosmos DB NoSQL queries<\/li>\n<li>Syntax highlighting for JSON documents<\/li>\n<li>Quick actions for common operations<\/li>\n<li>Integrated diagnostics to troubleshoot performance issues<\/li>\n<li>Connection string management with secure credential storage<\/li>\n<li><strong>One-click local emulator attachment<\/strong> \u2013 Instantly connect to your Azure Cosmos DB Emulator without manually copying connection strings<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Game-Changer for AI Agentic Developers<\/h2>\n<p>If you\u2019re building <strong>AI agents, chatbots, or contextual AI applications<\/strong>, this extension is a <strong>must-have tool<\/strong>. What sets it apart is the <strong>built-in AI agent intelligence<\/strong> that guides you through best practices and data modeling decisions, not just generic database management.<\/p>\n<h2 class=\"wp-block-heading\">\ud83c\udfaf Intelligent Guidance Built Right In<\/h2>\n<p>The extension comes with <strong>context-aware instructions<\/strong> that automatically educate GitHub Copilot and other AI coding assistants about Cosmos DB best practices for AI workloads.<\/p>\n<h3 class=\"wp-block-heading\">Custom Instructions File (azurecosmosdb.instructions.md)<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Educates AI assistants<\/strong>: GitHub Copilot automatically learns Azure Cosmos DB best practices when you work in your codebase<\/li>\n<li><strong>Provides data modeling guidance<\/strong>: Smart suggestions for partition keys, document structure, and embedding strategies<\/li>\n<li><strong>Recommends Cosmos DB for AI scenarios<\/strong>:\n<ul>\n<li>Chat interfaces with conversation history<\/li>\n<li>Multi-user AI assistants with memory<\/li>\n<li>RAG (Retrieval-Augmented Generation) applications<\/li>\n<li>User profile and context management systems<\/li>\n<li>Real-time recommendation engines<\/li>\n<\/ul>\n<\/li>\n<li><strong>Ensures best practices<\/strong>: Guides AI assistants on hierarchical partition keys, document sizing, and optimal indexing strategies<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\">Data Modeling Prompts (azurecosmosdb.datamodelling.prompt.md)<\/h3>\n<ul class=\"wp-block-list\">\n<li>Choose the right partition key for AI workloads (<code>userId<\/code>, <code>conversationId<\/code>, <code>tenantId<\/code>)<\/li>\n<li>Decide between embedding vs. referencing based on access patterns<\/li>\n<li>Design schemas for chat history<\/li>\n<li>Model user context and memory for agent state across sessions<\/li>\n<li>Optimize for vector search by storing embeddings alongside documents<\/li>\n<li>Handle hierarchical data with Hierarchical Partition Keys (HPK) to overcome 20 GB partition limits<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">The Power of Intelligent Defaults<\/h2>\n<ul class=\"wp-block-list\">\n<li>Pre-configured recommendations for chat history storage patterns<\/li>\n<li>Automatic detection of RAG workloads and vector search optimization tips<\/li>\n<li>Smart alerts when your data model might cause performance issues at scale<\/li>\n<li>Context-aware code generation through Copilot integration<\/li>\n<li>Scenario-specific guidance for chat apps, IoT agents, or recommendation engines<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Getting Started<\/h2>\n<h3 class=\"wp-block-heading\">Installation<\/h3>\n<ol class=\"wp-block-list\">\n<li>Open Visual Studio Code<\/li>\n<li>Go to the <strong>Extensions<\/strong> view (<code>Ctrl+Shift+X<\/code> \/ <code>Cmd+Shift+X<\/code>)<\/li>\n<li>Search for <strong>&#8220;Azure Cosmos DB&#8221;<\/strong><\/li>\n<li>Click <strong>Install<\/strong> on the extension by Microsoft (<code>ms-azuretools.vscode-cosmosdb<\/code>)<\/li>\n<\/ol>\n<h3 class=\"wp-block-heading\">Quick Start for AI Developers<\/h3>\n<pre class=\"wp-block-code\"><code>1. Install the Cosmos DB Emulator for local development\r\n   Download from: https:\/\/learn.microsoft.com\/azure\/cosmos-db\/emulator\r\n\r\n2. Create your first AI agent database structure\r\n   Use the extension to create:\r\n     - Database: ai-agent-db\r\n     - Container: conversations (partition key: \/userId)\r\n     - Container: user-context (partition key: \/userId)\r\n     - Container: embeddings (partition key: \/userId, with vector policy)\r\n\r\n3. Insert sample data and test your agent queries<\/code><\/pre>\n<p>All done <strong>directly from VS Code!<\/strong><\/p>\n<h3 class=\"wp-block-heading\">Sample Use Case: Building a Multi-User AI Assistant<\/h3>\n<p>Let\u2019s say you\u2019re building an AI assistant with memory capabilities:<\/p>\n<pre class=\"wp-block-code\"><code>{\r\n  \"id\": \"conv-12345\",\r\n  \"userId\": \"user-abc\",\r\n  \"messages\": [\r\n    {\r\n      \"role\": \"user\",\r\n      \"content\": \"What's the weather like?\",\r\n      \"timestamp\": \"2025-11-07T10:00:00Z\"\r\n    },\r\n    {\r\n      \"role\": \"assistant\",\r\n      \"content\": \"I can help you with that. What's your location?\",\r\n      \"timestamp\": \"2025-11-07T10:00:01Z\"\r\n    }\r\n  ],\r\n  \"context\": {\r\n    \"lastTopic\": \"weather\",\r\n    \"userPreferences\": {\r\n      \"temperatureUnit\": \"celsius\"\r\n    }\r\n  },\r\n  \"_ts\": 1699354801\r\n}<\/code><\/pre>\n<ul class=\"wp-block-list\">\n<li>Inspect this document visually<\/li>\n<li>Test queries to retrieve recent conversations:\n<pre><code>SELECT * FROM c WHERE c.userId = 'user-abc' ORDER BY c._ts DESC<\/code><\/pre>\n<\/li>\n<li>Verify partition key distribution across users<\/li>\n<li>Monitor RU consumption for your access patterns<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Stay Informed<\/h2>\n<ul class=\"wp-block-list\">\n<li>VS Code notifications<\/li>\n<li>Extension Marketplace changelog<\/li>\n<li>GitHub README and Discussions<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Join the Community<\/h2>\n<ul class=\"wp-block-list\">\n<li>\ud83d\udcdd <strong>Share Your Feedback<\/strong>: <a href=\"https:\/\/nam.dcv.ms\/xLYx6Mv8Q1\" target=\"_blank\" rel=\"noopener\">Tell us about your experience with the extension<\/a><\/li>\n<li>GitHub: <a href=\"https:\/\/github.com\/microsoft\/vscode-cosmosdb\" target=\"_blank\" rel=\"noopener\">Report issues or contribute<\/a><\/li>\n<li>Discussions: <a href=\"https:\/\/github.com\/microsoft\/vscode-cosmosdb\/discussions\" target=\"_blank\" rel=\"noopener\">Ask questions and get support<\/a><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">\u2b50 Leave a Review<\/h2>\n<p>Tell us about your Azure Cosmos DB experience! Leave a review on <strong>PeerSpot<\/strong> and get a <strong>$50 gift<\/strong>. <a href=\"https:\/\/nam.dcv.ms\/xLYx6Mv8Q1\" target=\"_blank\" rel=\"noopener\">Get started here<\/a>.<\/p>\n<h2 class=\"wp-block-heading\">\u2601\ufe0f About Azure Cosmos DB<\/h2>\n<p>Azure Cosmos DB is a <strong>fully managed, serverless NoSQL and vector database<\/strong> for modern app development, including AI applications. With SLA-backed speed and availability, as well as <strong>instant dynamic scalability<\/strong>, it\u2019s ideal for <strong>real-time NoSQL and MongoDB applications<\/strong> that require high performance and distributed computing over massive volumes of data. <a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cosmos-db\/\" target=\"_blank\" rel=\"noopener\">Try Azure Cosmos DB for free<\/a> and follow updates on <strong>X, YouTube, and LinkedIn<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re thrilled to announce the general availability (GA) of the Azure Cosmos DB extension for Visual Studio Code! This powerful extension brings enterprise-grade database management directly into your development environment, making it easier than ever to build, test, and deploy applications powered by Azure Cosmos DB. &nbsp; \ufeff\ufeff As a Cosmos DB developer, you know [&hellip;]<\/p>\n","protected":false},"author":80443,"featured_media":11322,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[1864,1872,1954],"class_list":["post-11211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-core-sql-api","tag-azurecosmosdb","tag-nosql","tag-vscode"],"acf":[],"blog_post_summary":"<p>We\u2019re thrilled to announce the general availability (GA) of the Azure Cosmos DB extension for Visual Studio Code! This powerful extension brings enterprise-grade database management directly into your development environment, making it easier than ever to build, test, and deploy applications powered by Azure Cosmos DB. &nbsp; \ufeff\ufeff As a Cosmos DB developer, you know [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/11211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/80443"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=11211"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/11211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/11322"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=11211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=11211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=11211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}