{"id":2986,"date":"2024-03-12T09:13:53","date_gmt":"2024-03-12T16:13:53","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sdk\/?p=2986"},"modified":"2024-03-12T09:13:53","modified_gmt":"2024-03-12T16:13:53","slug":"azure-developer-cli-azd-march-2024-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sdk\/azure-developer-cli-azd-march-2024-release\/","title":{"rendered":"Azure Developer CLI (azd) &#8211; March 2024 Release"},"content":{"rendered":"<p>We&#8217;re pleased to announce that the March 2024 release (version 1.7.0) of the Azure Developer CLI (<code>azd<\/code>) is now available. As always, you can learn about how to get started with the Azure Developer CLI by visiting our <a href=\"https:\/\/aka.ms\/azd\">documentation<\/a>.<\/p>\n<p>Here&#8217;s what&#8217;s new in <code>azd<\/code>:<\/p>\n<ul>\n<li>Sovereign cloud support <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/973\">(azure-dev#976)<\/a><\/li>\n<li>Support for third-party container registries <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3241\">(azure-dev#3241)<\/a><\/li>\n<li>Visual Studio publish experience for .NET Aspire<\/li>\n<li>Other .NET Aspire enhancements<\/li>\n<\/ul>\n<h2>Sovereign cloud support<\/h2>\n<p>We&#8217;re excited to offer <code>azd<\/code> to more developers now by adding support for Azure China Cloud and Azure US Government in addition to the Azure Public cloud! The Azure Public cloud is still the default used if no cloud is specified. The cloud can be configured at the user, project, or environment level.<\/p>\n<p>For full details about how to configure and use <code>azd<\/code> with Azure China Cloud or Azure US Government, see our <a href=\"https:\/\/aka.ms\/azd-sovereign-clouds\">docs<\/a>.<\/p>\n<h2>Support for third-party container registries<\/h2>\n<p>We now allow pushing container images to external container registries.<\/p>\n<p>To use this feature, you need to manually authenticate to the external container registry before calling <code>azd deploy<\/code>. To do so, run <code>docker login<\/code> and authenticate to your external container registry following the setup\/configuration of your registry provider.<\/p>\n<p>Here&#8217;s an example <code>azure.yaml<\/code> file pulling from an external container registry:<\/p>\n<pre><code class=\"language-yaml\">name: todo-nodejs-mongo-aca\r\nmetadata:\r\n  template: todo-nodejs-mongo-aca@0.0.1-beta\r\nservices:\r\n  nginx:\r\n    image: docker.io\/username\/nginx:latest\r\n    host: containerapp<\/code><\/pre>\n<p>In this example, during <code>azd deploy<\/code> the container is pulled from <code>docker.io\/username\/nginx:latest<\/code> and directly referenced by the container app service.<\/p>\n<h2>Visual Studio publish experience for .NET Aspire<\/h2>\n<p>A Visual Studio publish experience is now enabled for .NET Aspire applications! This experience is built with <code>azd<\/code> so you can publish your .NET Aspire apps directly from Visual Studio to any of your currently running <code>azd<\/code> environments!<\/p>\n<p>Learn more about this change in <a href=\"https:\/\/aka.ms\/azd-aspire-preview-4\">.NET Aspire&#8217;s latest product updates<\/a>.<\/p>\n<h2>Other .NET Aspire enhancements<\/h2>\n<p>As a part of <code>azd<\/code>&#8216;s continued partnership with <a href=\"https:\/\/aka.ms\/dotnet-aspire\">.NET Aspire<\/a>, we made a couple noteworthy changes:<\/p>\n<ul>\n<li>Prompting for parameter resources<\/li>\n<li>Automatically create secrets<\/li>\n<\/ul>\n<p>To learn more about these enhancements, check out <a href=\"https:\/\/aka.ms\/azd-aspire-preview-4\">.NET Aspire&#8217;s latest product updates<\/a>.<\/p>\n<h2>Other changes and enhancements<\/h2>\n<p>We also added smaller enhancements and fixed issues requested by users that should improve your experience working with the <code>azd<\/code>. Some notable changes include:<\/p>\n<ul>\n<li>Features for <code>azd<\/code> core:\n<ul>\n<li>Set <code>DOTNET_ENVIRONMENT<\/code> when producing a manifest <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3233\">(azure-dev#3233)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Bug fixes for <code>azd<\/code> core:\n<ul>\n<li>Deploying javascript app with Aspire results in error during deploy step <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3391\">(azure-dev#3391)<\/a><\/li>\n<li>Aspire: calling <code>azd infra synth<\/code> does not produce the autogenerate inputs <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3434\">(azure-dev#3434)<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Community contributions<\/h2>\n<p>We\u2019d also like to extend a special thanks to the community contributors of this release:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/john0isaac\">john0isaac<\/a>:\n<ul>\n<li>Add MySQL Bicep to core templates <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3334\">(azure-dev#3334)<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>You can use the Azure Developer CLI from:<\/p>\n<ul>\n<li>Your terminal of choice on Windows, Linux, or macOS.<\/li>\n<li>Visual Studio Code or GitHub Codespaces by <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.azure-dev\">downloading the extension<\/a> from the Marketplace, or installing it directly from the extension view (<code>Ctrl<\/code> + <code>Shift<\/code> + <code>X<\/code> for Windows or <code>Cmd<\/code> + <code>Shift<\/code> + <code>X<\/code> for macOS) in Visual Studio Code.<\/li>\n<li>Visual Studio by <a href=\"https:\/\/devblogs.microsoft.com\/azure-sdk\/introducing-the-azure-developer-cli-a-faster-way-to-build-apps-for-the-cloud\/#visual-studio\">enabling the preview feature flag<\/a>.\nYou can learn more about the Azure Developer CLI from our <a href=\"https:\/\/aka.ms\/azd\">official documentation<\/a>. If you run into any problems or have suggestions, file an issue or start a discussion in the <a href=\"https:\/\/github.com\/Azure\/azure-dev\">Azure Developer CLI repository<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post announces the March release of the Azure Developer CLI (`azd`), which includes sovereign cloud support, support for third-party container registries, Visual Studio publish experience for .NET Aspire, and various other .NET Aspire enhancements.<\/p>\n","protected":false},"author":145931,"featured_media":2111,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[701,864,878,160,159,861,162,733,895],"class_list":["post-2986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-sdk","tag-net","tag-azure-developer-cli","tag-codespaces","tag-java","tag-javascript","tag-kubernetes","tag-python","tag-typescript","tag-vscode"],"acf":[],"blog_post_summary":"<p>This post announces the March release of the Azure Developer CLI (`azd`), which includes sovereign cloud support, support for third-party container registries, Visual Studio publish experience for .NET Aspire, and various other .NET Aspire enhancements.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/2986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/users\/145931"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/comments?post=2986"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/2986\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/media\/2111"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/media?parent=2986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/categories?post=2986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/tags?post=2986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}