{"id":3245,"date":"2024-11-14T14:14:23","date_gmt":"2024-11-14T22:14:23","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sdk\/?p=3245"},"modified":"2024-11-14T14:14:23","modified_gmt":"2024-11-14T22:14:23","slug":"azure-developer-cli-azd-november-2024","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sdk\/azure-developer-cli-azd-november-2024\/","title":{"rendered":"Azure Developer CLI (azd) &#8211; November 2024"},"content":{"rendered":"<p>This post announces the November 2024 release (version 1.11.0) of the Azure Developer CLI (<code>azd<\/code>). 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>This month, we&#8217;re heading to Microsoft Ignite showing the new template gallery. If you are there, stop by the <a href=\"https:\/\/ignite.microsoft.com\/sessions\/0c222358-fd2b-4f6f-b5f2-e113d60eae58\">azd demo session<\/a> and the <a href=\"https:\/\/www.pinecone.io\/blog\/azure-serverless-ga\/\">Pinecone<\/a> booth where you can see the Pinecone + azd templates. In the meantime, we invite you to join <a href=\"https:\/\/github.com\/Azure\/azure-dev\/discussions\/4555\">our November release discussion on GitHub<\/a>. We&#8217;re also welcoming <a href=\"https:\/\/forms.office.com\/r\/92YAkjf5Hr\">community call guest signups<\/a>. If you contributed to <code>azd<\/code>, made a template, or done anything else interesting using <code>azd<\/code>, you&#8217;re invited to join our livestream and show off your work.<\/p>\n<p>Here&#8217;s what&#8217;s new with <code>azd<\/code>:<\/p>\n<ul>\n<li>New alpha command <code>azd add<\/code>. <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4527\">(azure-dev#4527)<\/a><\/li>\n<\/ul>\n<h2>Compose your app with <code>azd add<\/code><\/h2>\n<p>You can now compose and build up your apps by adding supported Azure components progressively using azd. This new feature is a dev-centric, guided, simplified experience for adding Azure resources to your project. We use <a href=\"https:\/\/aka.ms\/avm\">Azure Verified Modules (AVM)<\/a> when possible, providing recommended practices using building blocks for Azure that are secure by design.<\/p>\n<h3>Start from code<\/h3>\n<p>With azd composability enabled, start from your app code and with <code>azd init<\/code> you are prompted to start from a template or from your code base. Starting from the code base, you start with the <a href=\"https:\/\/learn.microsoft.com\/azure\/developer\/azure-developer-cli\/start-with-app-code\">simplified init<\/a> flow, which generates the <code>\/infra<\/code> folder. We modified simplified init so it can be modified.<\/p>\n<p>After initializing your project, deploy your app to <a href=\"https:\/\/azure.microsoft.com\/products\/container-apps\">Azure Container Apps (ACA)<\/a>. Then run <code>azd add<\/code> to add a database. <code>azd add<\/code> takes you through adding a database\u2014<em>without writing a single line of Bicep code<\/em>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-content\/uploads\/sites\/58\/2024\/11\/thecatsaidno.gif\" alt=\"A GIF demonstrating how to start from code\" \/><\/p>\n<h3>Start from scratch<\/h3>\n<p>You can also start by running <code>azd init<\/code> to initialize a minimal project and then run azd add to, for example, Azure OpenAI. You can focus on exploring and writing code. When you&#8217;re ready, add a host and deploy your app to ACA.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-content\/uploads\/sites\/58\/2024\/11\/startfromscratch.gif\" alt=\"A GIF demonstrating how to start from scratch\" \/><\/p>\n<h3>Getting the Bicep Code<\/h3>\n<p>Wondering about the Bicep code used to create the Azure services? When you&#8217;re ready to learn more, run <code>azd infra synth<\/code> and all of the Bicep code is in the <code>\/infra<\/code> folder. Note: <code>azd infra synth<\/code> is also an alpha feature.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-content\/uploads\/sites\/58\/2024\/11\/infrasynth.gif\" alt=\"A GIF demonstrating how to use &#96;infra synth&#96;\" \/><\/p>\n<h3>Supported Azure services<\/h3>\n<p>We build upon simplified init. For alpha, the target host is Azure Container Apps (ACA) only. We&#8217;re working on scaling azd composability so stay tuned for more update in future releases.<\/p>\n<p>Currently supported Azure services for <code>azd add<\/code>:<\/p>\n<ul>\n<li>AI: Azure OpenAI (keyless access)<\/li>\n<li>Database: MongoDB, PostgreSQL, Redis<\/li>\n<\/ul>\n<p>To enable azd composability, you can run:\n<code>azd config set alpha.compose on<\/code><\/p>\n<p>Since azd composability support is considered an <a href=\"https:\/\/learn.microsoft.com\/azure\/developer\/azure-developer-cli\/feature-versioning#alpha-features\">alpha feature<\/a>, we only recommend using it for non-business-critical scenarios.<\/p>\n<h2>Other changes, enhancements, and bug fixes<\/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<p>Bugs fixed in <code>azd<\/code>:<\/p>\n<ul>\n<li>Fix environment variables to be evaluated too early for <code>main.parameters.json<\/code> <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4363\">(azure-dev#4363)<\/a>\n&#8211;<a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4524\">(azure-dev#4524)<\/a> Fix using parameters for .NET Aspire deployment.<\/li>\n<\/ul>\n<p>Other changes:<\/p>\n<ul>\n<li>Contributions to ensure azd works with azure.dev\/azure. Check out <a href=\"https:\/\/www.youtube.com\/live\/qmJigVn8gcg?si=MBIccD2PnFEwzr5M\">this livestream<\/a> discussing the new preview release.<\/li>\n<li>Dev Center Environments Outputs API Integration. This update moves away from manually reading Azure deployment outputs to use the Outputs API directly from the Azure Developer Environments (ADE) team. This feature enables a seamless outputs experience across their supported runners including ARM, Bicep, Terraform, and other custom runners. <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4512\">(azure-dev#4512)<\/a><\/li>\n<li>Auto detect port from Dockerfile in <code>azd init<\/code> from code <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4454\">(azure-dev#4454)<\/a><\/li>\n<li>Simplified init Java app detection enhancements: maven multi-module projects, database dependencies (e.g., MySQL, PostgreSQL). <a href=\"https:\/\/github.com\/Azure\/azure-dev\/pull\/4437\">(azure-dev#4437)<\/a><\/li>\n<\/ul>\n<h2>New Templates<\/h2>\n<p>New templates this month include:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/spring-petclinic-ai\">Spring Pet Clinic AI<\/a> authored by <a href=\"https:\/\/github.com\/sonwan2020\">Songbo Wang<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/java-on-aca-quarkus\">Java on ACA Quarkus Template<\/a> authored by <a href=\"https:\/\/github.com\/majguo\">Jianguo Ma<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/functions-quickstart-dotnet-azd\">Azure Functions C# HTTP Trigger using Azure Developer CLI<\/a> authored by <a href=\"https:\/\/github.com\/BigMorty\">Mike Morton<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/functions-quickstart-python-http-azd\">Azure Functions Python HTTP Trigger using Azure Developer CLI<\/a> authored by <a href=\"https:\/\/github.com\/nzthiago\">Thiago Almeida<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/functions-quickstart-javascript-azd\">Azure Functions JavaScript HTTP Trigger using Azure Developer CLI<\/a> authored by <a href=\"https:\/\/github.com\/BigMorty\">Mike Morton<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/functions-quickstart-typescript-azd\">Azure Functions TypeScript HTTP Trigger using Azure Developer CLI<\/a> authored by <a href=\"https:\/\/github.com\/BigMorty\">Mike Morton<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/azure-functions-java-flex-consumption-azd\">Azure Functions Java HTTP Trigger using AZD<\/a> authored by <a href=\"https:\/\/github.com\/BigMorty\">Mike Morton<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Azure-Samples\/functions-quickstart-powershell-azd\">Azure Functions PowerShell HTTP Trigger using AZD<\/a> authored by <a href=\"https:\/\/github.com\/BigMorty\">Mike Morton<\/a><\/li>\n<\/ul>\n<p>Do you have an <code>azd<\/code> template you&#8217;d like to share with the rest of the community? You can learn how to with our <a href=\"https:\/\/azure.github.io\/awesome-azd\/docs\/intro\">contributor guide<\/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 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 November release of the Azure Developer CLI (`azd`).<\/p>\n","protected":false},"author":107449,"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-3245","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 November release of the Azure Developer CLI (`azd`).<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3245","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\/107449"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/comments?post=3245"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3245\/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=3245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/categories?post=3245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/tags?post=3245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}