{"id":2192,"date":"2022-09-14T11:02:18","date_gmt":"2022-09-14T18:02:18","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sdk\/?p=2192"},"modified":"2022-09-14T11:46:44","modified_gmt":"2022-09-14T18:46:44","slug":"azure-developer-cli-azd-september-2022-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sdk\/azure-developer-cli-azd-september-2022-release\/","title":{"rendered":"Azure Developer CLI (azd) \u2013 September 2022 Release"},"content":{"rendered":"<p>We&#8217;re pleased to announce that the September 2022 release (<code>0.2.0-beta.1<\/code>) of the Azure Developer CLI (<code>azd<\/code>) is now available. You can learn about how to get started with the Azure Developer CLI by visiting our <a href=\"https:\/\/aka.ms\/azd\">Dev Hub<\/a>.<\/p>\n<p>This release includes the following improvements:<\/p>\n<ul>\n<li>Added support for Terraform for infrastructure as code (IaC), plus two new Terraform templates for Python and Node.js workloads <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/226\">(azure-dev#226)<\/a><\/li>\n<li>Improved progress report for provisioning <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/152\">(azure-dev\/pull#152)<\/a><\/li>\n<li>New C# + Azure SQL Template <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/450\">(azure-dev\/#450)<\/a><\/li>\n<\/ul>\n<p>If you\u2019re interested, see the full list of improvements since our public preview release in <a href=\"https:\/\/github.com\/Azure\/azure-dev\/releases\">our changelog<\/a>.<\/p>\n<h2>Terraform support for Infrastructure as Code<\/h2>\n<p>The Azure Developer CLI now supports multiple infrastructure providers &#8211; Bicep and newly added support for <a href=\"https:\/\/aka.ms\/azure-dev\/terraform\">Terraform<\/a>. We&#8217;re excited to announce this added support as Terraform has been a recurring theme in conversations we&#8217;ve been having with developers.<\/p>\n<h3>How do I use Terraform for IaC with the Azure Developer CLI?<\/h3>\n<p>If you\u2019re interested in using Terraform for IaC, you\u2019ll be able to include all your Terraform (<code>.tf<\/code>) files within the <code>infra\/<\/code> directory of your project. The only other thing you&#8217;ll need to do to tell <code>azd<\/code> to use Terraform as your IaC provider is add the following snippet to your <code>azure.yaml<\/code> in the root of your project:<\/p>\n<pre><code class=\"language-yaml\">infra:\r\n  provider: terraform<\/code><\/pre>\n<p>To use Terraform with remote state (like CI\/CD), see <a href=\"https:\/\/aka.ms\/azure-dev\/terraform\">this doc<\/a>, which outlines how to configure your project.<\/p>\n<h3>Terraform vs. Bicep: Which do I pick?<\/h3>\n<p>If you\u2019re already using Bicep as your IaC provider and plan to continue to use it going forward, no action is needed on your part!<\/p>\n<p>If you\u2019re trying to decide which IaC provider to use for your project, see <a href=\"https:\/\/docs.microsoft.com\/azure\/developer\/terraform\/comparing-terraform-and-bicep?tabs=comparing-bicep-terraform-integration-features\">this resource<\/a>. This doc outlines some of the considerations and key differences between IaC providers so that you can make an informed decision based on your project requirements.<\/p>\n<h2>New Templates<\/h2>\n<p>With added Terraform support, our team has also authored two new templates to show how you can use Terraform with the Azure Developer CLI:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/todo-python-mongo-terraform\">Todo Application with Python and Terraform<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/todo-nodejs-mongo-terraform\">Todo Application with node.js and Terraform<\/a><\/li>\n<\/ul>\n<p>In this release, we&#8217;re also shipping a new <a href=\"https:\/\/github.com\/azure-samples\/todo-csharp-sql\">C# and Azure SQL template<\/a>.<\/p>\n<p>As always, if you make your own <code>azd<\/code> template\/azd-compatible project, make sure to tag it with the <a href=\"https:\/\/github.com\/topics\/azd-templates\">azd-templates topic<\/a> on GitHub so that others can check it out!<\/p>\n<h2>Improved progress report for provisioning resources<\/h2>\n<p>In this release, we&#8217;re excited to show off some improvements to the provisioning progress report that you see while running <code>azd provision<\/code> (or <code>azd up<\/code>). As of release 0.1.0-beta.3, you can see exactly what resources are being provisioned via clear resource names. For example, App Service plan or Log Analytics workspace. We\u2019ve also added the resource identifiers in the output log so that you can easily cross-reference these resources in the Azure portal.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-content\/uploads\/sites\/58\/2022\/09\/azd-provision-output-september-release.png\" alt=\"\" \/><\/p>\n<p>We&#8217;re also <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/255\">actively working on the UX of this flow<\/a> so stay tuned for even further improvements in an upcoming release.<\/p>\n<h2>Other Changes and Enhancements<\/h2>\n<p>We have also made some other smaller enhancements and fixed issues requested by users that should improve your experience working with the Azure Developer CLI. Some notable changes include:<\/p>\n<ul>\n<li>In VS Code, template READMEs now render on session start after successful <code>azd init<\/code> or <code>azd up<\/code> to help orient developers <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/148\">(azure-dev#148)<\/a><\/li>\n<li>In VS Code, the template list surfaced in the command palette now uses azd template list to populate available templates <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/476\">(azure-dev#476)<\/a><\/li>\n<li>Devcontainer definitions have been made language-specific <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/88\">(azure-dev#88)<\/a><\/li>\n<li>Renamed Bicep <code>resourceGroup<\/code> in templates to <code>rg<\/code> to avoid collisions <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/515\">(azure-dev\/pull#515)<\/a><\/li>\n<li>Bicep outputs are now stored as .NET user secrets for .NET projects <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/405\">(azure-dev#405)<\/a><\/li>\n<li><code>azd down --force<\/code> now behaves correctly when Key Vaults are part of project infrastructure <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/87\">(azure-dev#87)<\/a><\/li>\n<li>Support for nested Bicep infrastructure modules with Azure Container App target <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/117\">(azure-dev\/pull#117)<\/a><\/li>\n<\/ul>\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\/TheEskhaton\">TheEskhaton<\/a>: <code>gh login<\/code> should be <code>gh auth login<\/code> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/issues\/77\">(azure-dev#77)<\/a><\/li>\n<\/ul>\n<p>Try out these new improvements by <a href=\"https:\/\/aka.ms\/azure-dev\/install-instructions\">installing the Azure Developer CLI<\/a>!<\/p>\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 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>, 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<\/ul>\n<p>You can learn more about the Azure Developer CLI from our <a href=\"https:\/\/aka.ms\/azd\">Dev Hub documentation<\/a>. If you run into any problems or have suggestions, file an issue or start a discussion on <a href=\"https:\/\/github.com\/Azure\/azure-dev\">Azure Developer CLI repo<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post announces the September 2022 release of the Azure Developer CLI (azd).<\/p>\n","protected":false},"author":95415,"featured_media":2193,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[864,815,159,162,733],"class_list":["post-2192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-sdk","tag-azure-developer-cli","tag-c","tag-javascript","tag-python","tag-typescript"],"acf":[],"blog_post_summary":"<p>This post announces the September 2022 release of the Azure Developer CLI (azd).<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/2192","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\/95415"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/comments?post=2192"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/2192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/media\/2193"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/media?parent=2192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/categories?post=2192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/tags?post=2192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}