{"id":3012,"date":"2024-04-09T14:14:59","date_gmt":"2024-04-09T21:14:59","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sdk\/?p=3012"},"modified":"2024-04-09T14:14:59","modified_gmt":"2024-04-09T21:14:59","slug":"azure-developer-cli-azd-april-2024-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sdk\/azure-developer-cli-azd-april-2024-release\/","title":{"rendered":"Azure Developer CLI (azd) &#8211; April 2024 Release"},"content":{"rendered":"<p>We&#8217;re pleased to announce that the April 2024 release (version 1.8.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>Our team is hard at work planning the future of <code>azd<\/code>, so this month&#8217;s release is a little lighter on features than usual. Still, we&#8217;re happy to share that we have some exciting work surrounding AI coming to <a href=\"https:\/\/aka.ms\/microsoft-build\">Microsoft Build<\/a>. If you haven&#8217;t signed up yet, early bird registration is open through April 12 or you can register for free to attend virtually. We look forward to seeing you there!<\/p>\n<p>Here&#8217;s what&#8217;s new in <code>azd<\/code> this month:<\/p>\n<ul>\n<li>.NET Aspire enhancements<\/li>\n<li>Breaking changes for secrets in Container Apps <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3589\">(azure-dev#3589)<\/a><\/li>\n<\/ul>\n<h2>.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 several noteworthy changes:<\/p>\n<ul>\n<li>Support for apps with multiple exposed ports <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3267\">(azure-dev#3612)<\/a><\/li>\n<li>Discover export port from the result of <code>dotnet publish<\/code> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3073\">(azure-dev#3073)<\/a><\/li>\n<li>Support more input generation in Aspire manifest <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3462\">(azure-dev#3462)<\/a><\/li>\n<\/ul>\n<p>To learn more about these and other .NET Aspire enhancements, check out <a href=\"https:\/\/learn.microsoft.com\/dotnet\/aspire\/whats-new\/preview-5\">.NET Aspire&#8217;s latest product updates<\/a>.<\/p>\n<h2>Breaking change for securely passing secrets in Container Apps<\/h2>\n<p>One of our wonderful community contributors, <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3589\">pamelafox<\/a>, made an update to enable you to securely pass secrets into <code>container-app<\/code> modules. The <code>container-app.bicep<\/code> and <code>container-app-upsert.bicep<\/code> modules now mark the <code>secrets<\/code> parameter as <code>secure()<\/code>, and expect <code>secrets<\/code> to be an object (instead of an array). You need to reformat your array of <code>[{name: 'secret-name', value: secretValue}, ...]<\/code> as an object: <code>{'secret-name': secretValue, ...}<\/code> instead.<\/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>Add <code>--from-code<\/code> flag to <code>azd init<\/code> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3569\">(azure-dev#3569)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Bug fixes for <code>azd<\/code> core:\n<ul>\n<li>Fixes trailing comma for <code>todo-nodejs-mongo-aks<\/code> template&#8217;s invalid url in GitHub Action <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3388\">(azure-dev#3388)<\/a><\/li>\n<li>Fix &#8211; Azure Key Vault name generated from Azure Cosmos DB resource is too long <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3496\">(azure-dev#3496)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Breaking Changes:\n<ul>\n<li>Update Node.js version for <a href=\"https:\/\/github.com\/Azure\/setup-azd\">installing <code>azd<\/code> GitHub Action<\/a> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3578\">(azure-dev#3578)<\/a><\/li>\n<li>Update Node.js version for templates and pipelines <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3594\">(azure-dev#3594)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Bug fixes for <code>azd<\/code> with .NET Aspire:\n<ul>\n<li>Regression for dockerfile.v0 <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3649\">(azure-dev#3649)<\/a><\/li>\n<li>Set build args for dockerfile <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/3432\">(azure-dev#3432)<\/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\/mikekistler\">mikekistler<\/a>\n<ul>\n<li>Fix typo in <code>next-steps.md<\/code> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/3522\">(azure-dev#3522)<\/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>.<\/li>\n<li>You can learn more about the Azure Developer CLI from our <a href=\"https:\/\/aka.ms\/azd\">official documentation<\/a>.<\/li>\n<li>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>. You can also try checking out our <a href=\"https:\/\/aka.ms\/azd-troubleshoot\">troubleshooting documentation<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post announces the April release of the Azure Developer CLI (`azd`), which includes enhancements for .NET Aspire and various bug fixes.<\/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-3012","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 April release of the Azure Developer CLI (`azd`), which includes enhancements for .NET Aspire and various bug fixes.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3012","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=3012"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3012\/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=3012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/categories?post=3012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/tags?post=3012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}