{"id":10852,"date":"2025-08-25T15:33:12","date_gmt":"2025-08-25T22:33:12","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=10852"},"modified":"2025-08-25T15:38:37","modified_gmt":"2025-08-25T22:38:37","slug":"secure-your-connections-with-entra-id-support-in-the-documentdb-vs-code-extension","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/secure-your-connections-with-entra-id-support-in-the-documentdb-vs-code-extension\/","title":{"rendered":"Secure Your Connections with Entra ID Support in the DocumentDB VS Code Extension"},"content":{"rendered":"<p><span data-contrast=\"auto\">Today, we&#8217;re thrilled to announce a major update to the <\/span><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\" target=\"_blank\" rel=\"noopener\"><b><span data-contrast=\"none\">DocumentDB for VS Code<\/span><\/b><\/a><span data-contrast=\"auto\"> extension that will make life easier for enterprise developers. With <a href=\"https:\/\/microsoft.github.io\/vscode-documentdb\/release-notes\/0.3.html\">version 0.3<\/a>, you can now connect to your <\/span><b><span data-contrast=\"auto\">Azure Cosmos DB for MongoDB (vCore)<\/span><\/b><span data-contrast=\"auto\"> clusters using <\/span><b><span data-contrast=\"auto\">Microsoft Entra ID<\/span><\/b><span data-contrast=\"auto\"> authentication.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">For many organizations, using a central identity provider is a top security priority. <\/span><a href=\"https:\/\/www.microsoft.com\/security\/business\/identity-access\/microsoft-entra-id\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Entra ID<\/span><\/a><span data-contrast=\"auto\"> (formerly Azure AD) provides a secure, passwordless authentication method that helps you move away from managing connection strings with secrets. This update brings that modern security standard directly into your VS Code workflow so you can connect to your databases with confidence.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10854\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods.png\" alt=\"authentication methods\" width=\"1600\" height=\"400\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods.png 1600w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods-300x75.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods-1024x256.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods-768x192.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/0.3.0_authentication_methods-1536x384.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">A Seamless, Secure Experience<\/span><\/b><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:281,&quot;335559739&quot;:281}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">If you\u2019re already signed into Azure in your VS Code session, the extension automatically uses your existing identity to authenticate. There are no extra steps or pop-ups.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559685&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li aria-setsize=\"-1\" data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559683&quot;:0,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Flexibility is built-in.<\/span><\/b><span data-contrast=\"auto\"> When you connect via <\/span><b><span data-contrast=\"auto\">Service Discovery<\/span><\/b><span data-contrast=\"auto\"> or add a connection string, the extension intelligently detects the available authentication methods. You\u2019ll be prompted to choose Entra ID if it\u2019s supported, giving you the control to use the method that works best for your project.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li aria-setsize=\"-1\" data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559683&quot;:0,&quot;335559684&quot;:-2,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">Connections are simple to save.<\/span><\/b><span data-contrast=\"auto\"> You can save your Entra ID-authenticated connections just like any other, so you don&#8217;t have to repeat the process. The extension will remember your preferences for future sessions, making your workflow smoother and more efficient.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Ready to Get Started?<\/span><\/b><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:120}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">Download or update to the latest version of the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.vscode-documentdb\" target=\"_blank\" rel=\"noopener\"><b>DocumentDB for VS Code<\/b><\/a> extension to try out this new feature. Here is a\u00a0<\/span><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/documentdb-local-mongodb-api-on-your-machine\/\"><span data-contrast=\"none\">complete guide to setting up and using it end-to-end<\/span><\/a><span data-contrast=\"auto\">.\u00a0 <\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">This release is a big step forward for us, but it\u2019s just the beginning. Your feedback is what helps us prioritize what to build next<\/span><span data-contrast=\"none\">, please let us know what you think by filling out our <\/span><a href=\"https:\/\/github.com\/microsoft\/vscode-documentdb\/issues?q=state%3Aopen%20label%3A%22feedback%20wanted%22\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">feedback form<\/span><\/a><span data-contrast=\"none\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">We&#8217;re excited to hear from you and continue making the extension an essential tool for your workflow.<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\"><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-10855\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color.png\" alt=\"documentdb color image\" width=\"1600\" height=\"412\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color.png 1600w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color-300x77.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color-1024x264.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color-768x198.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/documentdb_color-1536x396.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a>\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335551550&quot;:0,&quot;335551620&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\"><div  class=\"d-flex justify-content-left\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.vscode-documentdb\" target=\"_blank\">Get Started Now!<\/a><\/div><\/span><\/p>\n<h3><strong>About Azure Cosmos DB<\/strong><\/h3>\n<p>Azure Cosmos DB is a fully managed and serverless distributed database for modern app development, with SLA-backed speed and availability, automatic and instant scalability, and support for open-source PostgreSQL, MongoDB, and Apache Cassandra. To stay in the loop on Azure Cosmos DB updates, follow us on <a href=\"https:\/\/twitter.com\/AzureCosmosDB\">X<\/a>, <a href=\"https:\/\/aka.ms\/AzureCosmosDBYouTube\">YouTube<\/a>, and <a href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\">LinkedIn<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we&#8217;re thrilled to announce a major update to the DocumentDB for VS Code extension that will make life easier for enterprise developers. With version 0.3, you can now connect to your Azure Cosmos DB for MongoDB (vCore) clusters using Microsoft Entra ID authentication.\u00a0 For many organizations, using a central identity provider is a top [&hellip;]<\/p>\n","protected":false},"author":125132,"featured_media":10858,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-10852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mongodb-api"],"acf":[],"blog_post_summary":"<p>Today, we&#8217;re thrilled to announce a major update to the DocumentDB for VS Code extension that will make life easier for enterprise developers. With version 0.3, you can now connect to your Azure Cosmos DB for MongoDB (vCore) clusters using Microsoft Entra ID authentication.\u00a0 For many organizations, using a central identity provider is a top [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10852","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\/125132"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=10852"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10852\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/10858"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=10852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=10852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=10852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}