{"id":13058,"date":"2026-10-15T06:38:16","date_gmt":"2026-10-15T13:38:16","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=13058"},"modified":"2026-10-15T06:52:14","modified_gmt":"2026-10-15T13:52:14","slug":"ai-agents-meet-the-azure-cosmos-db-vnext-emulator","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/ai-agents-meet-the-azure-cosmos-db-vnext-emulator\/","title":{"rendered":"AI Agents: Meet the Azure Cosmos DB vNext Emulator"},"content":{"rendered":"<p dir=\"auto\">Over a typical 2 day window, we record 10 times as many emulator sessions lasting more than 30 minutes for <a href=\"https:\/\/learn.microsoft.com\/azure\/cosmos-db\/emulator-linux\" target=\"_blank\" rel=\"nofollow noopener\">vNext<\/a> as for the legacy emulator. Our bet is that agentic development is helping drive the difference!<\/p>\n<p dir=\"auto\">The appeal is straightforward: coding agents need a database they can run anywhere. They also need a database they can start, seed, test against and debug as they work. Our vNext emulator fits that workflow naturally.<\/p>\n<p dir=\"auto\"><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2026\/10\/hero.svg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-13059\" role=\"img\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2026\/10\/hero.svg\" alt=\"An AI coding agent and a containerised Cosmos DB vNext Emulator exchanging application requests and test feedback inside a disposable workspace.\" width=\"1440\" height=\"720\" \/><\/a><\/p>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 dir=\"auto\" tabindex=\"-1\"><\/h2>\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">A different kind of developer<\/h2>\n<\/div>\n<p dir=\"auto\">With the vNext emulator, we&#8217;re building for a broader idea of the developer: a person at a keyboard, a coding agent, or the two working together. The original priorities of portability, lighter infrastructure and faster startup give us a strong foundation. Today, agentic workflows are explicitly part of how we think about the emulator&#8217;s evolution.<\/p>\n<p dir=\"auto\">A coding agent doesn&#8217;t just need to write an SDK call. It needs to create the database, load test data, run the application, inspect what happened and repeat. Ideally, it can do that inside a workspace that disappears when the task ends.<\/p>\n<p dir=\"auto\"><a href=\"https:\/\/docs.github.com\/en\/copilot\/how-tos\/copilot-on-github\/customize-copilot\/customize-cloud-agent\/customize-the-agent-environment\" target=\"_blank\" rel=\"noopener\">Copilot&#8217;s hosted coding agent<\/a> defaults to ephemeral Ubuntu; <a href=\"https:\/\/learn.chatgpt.com\/docs\/environments\/cloud-environments\" target=\"_blank\" rel=\"nofollow noopener\">Codex Cloud<\/a> creates isolated workspaces. Local tools such as <a href=\"https:\/\/github.com\/openai\/codex\" target=\"_blank\" rel=\"noopener\">Codex CLI<\/a>, <a href=\"https:\/\/code.claude.com\/docs\/en\/sandbox-environments\" target=\"_blank\" rel=\"nofollow noopener\">Claude Code<\/a> and <a href=\"https:\/\/docs.openclaw.ai\/gateway\/sandboxing\" target=\"_blank\" rel=\"nofollow noopener\">OpenClaw<\/a> offer different execution and isolation options. Docker access isn&#8217;t universal, but portable local infrastructure fits many of these workflows.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 dir=\"auto\" tabindex=\"-1\"><\/h2>\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">Why &#8220;vNext&#8221; if it is already GA?<\/h2>\n<\/div>\n<p dir=\"auto\"><strong>GA describes release status. vNext distinguishes two different emulator architectures.<\/strong><\/p>\n<p dir=\"auto\">The legacy emulator uses the Azure Cosmos DB service codebase and remains valuable for high-fidelity compatibility testing, particularly on Windows. Older Linux containers exist too, with <a href=\"https:\/\/learn.microsoft.com\/azure\/cosmos-db\/emulator\" target=\"_blank\" rel=\"nofollow noopener\">platform limitations<\/a>. Neither emulator reproduces every cloud-service capability.<\/p>\n<p dir=\"auto\">The vNext emulator takes a lighter, portable approach to emulating common workflows on Azure Cosmos DB. Its Linux container supports <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/announcing-general-availability-of-the-azure-cosmos-db-vnext-emulator\/\" target=\"_blank\" rel=\"nofollow noopener\">Windows, macOS and Linux hosts on x64 and ARM64<\/a>, with <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/introducing-the-new-linux-based-azure-cosmos-db-emulator-preview\/\" target=\"_blank\" rel=\"nofollow noopener\">faster startup among its design goals<\/a>. For short-lived jobs, startup and resource overhead are part of the developer experience, not background details.<\/p>\n<p dir=\"auto\">Our longer-term direction is for vNext to replace our legacy emulator as its coverage matures. GA doesn&#8217;t mean that transition is complete. <code>vnext-latest<\/code> identifies the vNext image stream; pin a tested release or digest in CI.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 dir=\"auto\" tabindex=\"-1\"><\/h2>\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">Enhancements for coding agents<\/h2>\n<\/div>\n<p dir=\"auto\">Recent vNext releases give agents more ways to act on a database, not just generate code for one.<\/p>\n<p dir=\"auto\"><strong>Prepare fixtures without a seeding application.<\/strong> The <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\/releases\/tag\/EN20260430\" target=\"_blank\" rel=\"noopener\">bundled shell and startup scripts<\/a> let an agent create test data, then inspect it non-interactively with <code>cosmoshell.sh -c<\/code>. Mount <code>.csh<\/code> scripts at <code>\/init<\/code> and set <code>ENABLE_INIT_DATA=true<\/code>; initialization runs on first startup, not before every test.<\/p>\n<p dir=\"auto\"><strong>Diagnose before rewriting code.<\/strong> With <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\/blob\/master\/docs\/opentelemetry.md\" target=\"_blank\" rel=\"noopener\">OTLP export and a collector<\/a>, shell <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\/releases\/tag\/EN20260706\"><code>--otel<\/code><\/a> correlates client and gateway spans. An agent can inspect the failing operation alongside test assertions instead of guessing from an exception. Logs and traces feed <strong>Debug \/ Diagnose<\/strong> separately from test results.<\/p>\n<p dir=\"auto\"><strong>Exercise the SDK&#8217;s negotiated protocol.<\/strong> <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\/releases\/tag\/EN20261008\" target=\"_blank\" rel=\"noopener\">October&#8217;s CosmosBinary support<\/a> lets agents test binary request\/response paths locally; JSON remains supported. The existing HTTP\/2 thin-client gateway (GW 2.0) is separate from Nacelle&#8217;s HTTP\/1.1 main gateway.<\/p>\n<p dir=\"auto\"><strong>Check generated container definitions.<\/strong> October&#8217;s stricter indexing-metadata validation helps catch configuration mistakes before deployment. It is groundwork for indexing, not full index execution or performance parity.<\/p>\n<p dir=\"auto\"><strong>Explore parallel test workloads.<\/strong> October&#8217;s experimental <a href=\"https:\/\/github.com\/microsoft\/nacelle\" target=\"_blank\" rel=\"noopener\">Nacelle<\/a> gateway addresses some concurrency issues. Try <code>--gateway-engine nacelle<\/code> when test workers share an emulator; further improvements are planned, not measured gains promised here.<\/p>\n<p dir=\"auto\"><strong>Test retrieval code locally.<\/strong> <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\/releases\/tag\/EN20260602\" target=\"_blank\" rel=\"noopener\">June added vector search<\/a>. An agent can use synthetic embeddings and expected result IDs to test retrieval logic, not merely produce a plausible query.<\/p>\n<p dir=\"auto\"><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2026\/10\/development-loop.svg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-13060\" role=\"img\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2026\/10\/development-loop.svg\" alt=\"An isolated Linux environment containing the loop: AI Coding Agent, Application Code, Cosmos DB SDK, vNext Emulator, Test Results, Debug \/ Diagnose, and back to the agent. A separate path supplies emulator logs and correlated shell\/gateway traces to diagnosis.\" width=\"1440\" height=\"820\" \/><\/a><\/p>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 dir=\"auto\" tabindex=\"-1\"><\/h2>\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">Try it in your agent&#8217;s workflow<\/h2>\n<\/div>\n<p dir=\"auto\">On a Linux host with Docker access, start a headless instance:<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\">\n<pre>docker run --detach --rm --name cosmos-agent \\\r\n  --publish 127.0.0.1:8081:8081 \\\r\n  --publish 127.0.0.1:8080:8080 \\\r\n  --env ENABLE_CONSOLE_EXPORTER=true \\\r\n  mcr.microsoft.com\/cosmosdb\/linux\/azure-cosmos-emulator:vnext-EN20261008 \\\r\n  --enable-explorer <span class=\"pl-c1\">false<\/span><\/pre>\n<div class=\"zeroclipboard-container\"><\/div>\n<\/div>\n<p dir=\"auto\">Use gateway mode and a bounded wait on <code>http:\/\/localhost:8080\/ready<\/code>. HTTP is the default; .NET and Java need the documented <a href=\"https:\/\/learn.microsoft.com\/azure\/cosmos-db\/emulator-linux\" rel=\"nofollow\">HTTPS\/certificate setup<\/a>. Stop and remove the instance with <code>docker stop cosmos-agent<\/code>.<\/p>\n<p dir=\"auto\">Run your existing integration suite first. Then evaluate Nacelle separately by appending <code>--gateway-engine nacelle<\/code> and comparing the same workload. Keep fixtures and configuration fixed.<\/p>\n<p dir=\"auto\">Review the release&#8217;s compatibility warning before upgrading. Keep the emulator isolated: authentication isn&#8217;t enforced, and local tests don&#8217;t replace Azure validation.<\/p>\n<p dir=\"auto\">Choose one approach for your next project:<\/p>\n<ul dir=\"auto\">\n<li><strong>Guide your coding agent as you iterate:<\/strong> <a href=\"https:\/\/github.com\/AzureCosmosDB\/cosmosdb-agent-kit\" target=\"_blank\" rel=\"noopener\">Azure Cosmos DB Agent Kit<\/a> supplies Cosmos DB best-practice skills within your existing development workflow.<\/li>\n<li><strong>Guide your coding agent with a specification:<\/strong> <a href=\"https:\/\/github.com\/github\/spec-kit\" target=\"_blank\" rel=\"noopener\">GitHub Spec Kit<\/a> structures the work around a specification, plan and implementation tasks. The <a href=\"https:\/\/github.com\/AzureCosmosDB\/spec-kit-cosmosdb\" target=\"_blank\" rel=\"noopener\">Cosmos DB extension<\/a> (preview) adds database-specific commands and reviews. Read more about <a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/spec-driven-development-comes-to-azure-cosmos-db-the-first-database-extension-for-github-spec-kit\/\" target=\"_blank\" rel=\"nofollow noopener\">specification-driven development (SDD) for Cosmos DB<\/a>.<\/li>\n<\/ul>\n<p dir=\"auto\">Either way, try vNext as your local test database and <a href=\"https:\/\/github.com\/Azure\/azure-cosmos-db-emulator-docker\" target=\"_blank\" rel=\"noopener\">share feedback<\/a>.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\">\n<h2 dir=\"auto\" tabindex=\"-1\"><\/h2>\n<h2 class=\"heading-element\" dir=\"auto\" tabindex=\"-1\">About Azure Cosmos DB<\/h2>\n<\/div>\n<p dir=\"auto\">Azure Cosmos DB is a fully managed NoSQL and vector database for modern applications, including AI. Ready to move beyond local testing? <a href=\"https:\/\/cosmos.azure.com\/try\/\" target=\"_blank\" rel=\"nofollow noopener\">Try Azure Cosmos DB for free<\/a>.<\/p>\n<p dir=\"auto\">Follow us on <a href=\"https:\/\/twitter.com\/AzureCosmosDB\" rel=\"nofollow\">X<\/a>, <a href=\"https:\/\/aka.ms\/AzureCosmosDBYouTube\" rel=\"nofollow\">YouTube<\/a> and <a href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\" rel=\"nofollow\">LinkedIn<\/a> for product updates and developer walkthroughs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over a typical 2 day window, we record 10 times as many emulator sessions lasting more than 30 minutes for vNext as for the legacy emulator. Our bet is that agentic development is helping drive the difference! The appeal is straightforward: coding agents need a database they can run anywhere. They also need a database [&hellip;]<\/p>\n","protected":false},"author":9387,"featured_media":13062,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1610,2017],"tags":[499],"class_list":["post-13058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure-cosmos-db-tools","tag-azure-cosmos-db"],"acf":[],"blog_post_summary":"<p>Over a typical 2 day window, we record 10 times as many emulator sessions lasting more than 30 minutes for vNext as for the legacy emulator. Our bet is that agentic development is helping drive the difference! The appeal is straightforward: coding agents need a database they can run anywhere. They also need a database [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/13058","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\/9387"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=13058"}],"version-history":[{"count":2,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/13058\/revisions"}],"predecessor-version":[{"id":13076,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/13058\/revisions\/13076"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/13062"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=13058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=13058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=13058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}