{"id":3058,"date":"2024-05-28T15:22:42","date_gmt":"2024-05-28T22:22:42","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/azure-sdk\/?p=3058"},"modified":"2024-05-28T15:58:53","modified_gmt":"2024-05-28T22:58:53","slug":"azure-developer-cli-azd-build-2024-recap","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/azure-sdk\/azure-developer-cli-azd-build-2024-recap\/","title":{"rendered":"Azure Developer CLI (azd) &#8211; Build 2024 Recap"},"content":{"rendered":"<p>We recently announced <a href=\"https:\/\/aka.ms\/azd-may-2024\">our May release of the Azure Developer CLI<\/a> (<code>azd<\/code>) and now we have more exciting news to share! 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>Deploy to AI \/ ML Studio online endpoint<\/li>\n<li>AI Template Collection<\/li>\n<\/ul>\n<p>Last week, <a href=\"https:\/\/aka.ms\/build\">Microsoft Build<\/a> attendees saw <code>azd<\/code> in many sessions: from Scott Guthrie&#8217;s demo of <a href=\"https:\/\/aka.ms\/GitHubCopilotForAzure\">GitHub Copilot for Azure<\/a> to Jessica Deen and Mandy Whaley&#8217;s demo using <code>azd pipeline config<\/code> to Wendy Breiding and Brady Gaster&#8217;s demo of .NET Aspire. If you registered for Build (online or in-person), you can visit the <a href=\"https:\/\/build.microsoft.com\/sessions\">session scheduler<\/a> to find the recordings for these sessions and many others.<\/p>\n<p>Sessions where you can find <code>azd<\/code> include:<\/p>\n<ul>\n<li><a href=\"https:\/\/build.microsoft.com\/sessions\/80558a0c-7ea0-4949-8c50-e7bead5ea8cc?source=sessions\">Maximize joy, minimize toil with great developer experiences<\/a> &#8211; Tuesday, May 21 @ 1PM (Pacific Daylight Time)<\/li>\n<li><a href=\"https:\/\/build.microsoft.com\/sessions\/95f1aa9b-3085-4d5c-b8c9-167175b136a1?source=sessions\">Better together, build and deploy to Azure with GitHub<\/a> &#8211; Wednesday, May 22 @ 11:45AM (Pacific Daylight Time)<\/li>\n<li><a href=\"https:\/\/build.microsoft.com\/sessions\/9b201e14-f060-49ff-8462-91fb35d9c763?source=sessions\">.NET Aspire development on any OS with the Visual Studio family<\/a> &#8211; Wednesday, May 22 @ 2:15PM (Pacific Daylight Time)<\/li>\n<li><a href=\"https:\/\/build.microsoft.com\/sessions\/b27da931-0604-4072-84a1-3cdc84c537cc?source=sessions\">Code-First LLMOps from prototype to production with GenAI tools<\/a> &#8211; Wednesday, May 22 @ 3:30PM (Pacific Daylight Time)<\/li>\n<\/ul>\n<h2>Deploy to AI\/ML studio online endpoint<\/h2>\n<p>Now we have enhanced capability for building and deploying apps that utilize AI. That means <code>azd<\/code> now supports a new host service target to allow seamless deployments of AI\/ML applications to AI Studio online endpoints.<\/p>\n<p>This new capability adds a new host type: <code>ai.endpoint<\/code>. With the AI host specified in your <code>azure.yaml<\/code> file, you need to include the <code>config.deployment<\/code> section to create a new online deployment to the associate online endpoint from the referenced YAML file definition. The associated environment and model are referenced when available. Then <code>azd<\/code> waits for deployment to enter a terminal provisioning state. Upon a successful deployment, all traffic is shifted to the new deployment version and all previous deployments are deleted to free up compute for future deployments.<\/p>\n<p>What else can you specify?<\/p>\n<ul>\n<li>Use <code>config.flow<\/code> to have <code>azd<\/code> create a new prompt flow from the specified file path<\/li>\n<li>Use <code>config.environment<\/code> to have <code>azd<\/code> create a new environment version using the referenced YAML file definition<\/li>\n<li>Use <code>config.model<\/code> to have <code>azd<\/code> create a new model version using the referenced YAML file definition<\/li>\n<\/ul>\n<p>Here&#8217;s an example <code>azure.yaml<\/code> file using the new AI endpoint service target:<\/p>\n<pre><code class=\"language-yaml\">name: contoso-example\r\nmetadata:\r\n  template: contoso-example@0.0.1-beta\r\nservices:\r\n  chat:\r\n    # Referenced new ai.endpoint host type\r\n    host: ai.endpoint\r\n    # New config flow for AI project configuration\r\n    config:\r\n      # The name of the AI Studio project \/ workspace\r\n      workspace: ${AZUREAI_PROJECT_NAME}\r\n      # Optional: Path to custom ML environment manifest\r\n      environment:\r\n        path: deployment\/docker\/environment.yml\r\n      # Optional: Path to your prompt flow folder that contains the flow manifest\r\n      flow:\r\n        path: .\/contoso-example\r\n      # Optional: Path to custom model manifest\r\n      model:\r\n        path: deployment\/chat-model.yaml\r\n        overrides:\r\n          \"properties.azureml.promptflow.source_flow_id\": ${AZUREAI_FLOW_NAME}\r\n      # Required: Path to deployment manifest\r\n      deployment:\r\n        path: deployment\/chat-deployment.yaml<\/code><\/pre>\n<p>Learn more about <a href=\"https:\/\/learn.microsoft.com\/azure\/developer\/azure-developer-cli\/azure-ai-ml-endpoints\"><code>azd<\/code> support AI endpoint service target<\/a>.<\/p>\n<p>Note AI endpoint service support is a <a href=\"https:\/\/learn.microsoft.com\/azure\/developer\/azure-developer-cli\/feature-versioning#beta-features\"><strong>Beta feature<\/strong><\/a> and subject to change. Feedback is more than welcome!<\/p>\n<p>We have many templates that use this new capability coming soon! In the meantime, we have two starter templates that can help accelerate your AI solution development available to use now. These templates can be used to provision the relevant Azure resources and then you can bring in your own app code to deploy.<\/p>\n<h3>AI starter template<\/h3>\n<p>The <a href=\"https:\/\/github.com\/Azure-Samples\/azd-ai-starter\">AI Starter Template<\/a> creates an Azure AI services account and provisions models within an <code>ai.yaml<\/code> configuration file. Keep in mind, this template is meant to be used as a jumping off point, so it only contains Bicep IaC files and doesn&#8217;t have application code to deploy.<\/p>\n<p>Run <code>azd init -t Azure-Samples\/azd-ai-starter<\/code> to get started!<\/p>\n<h3>AI Studio starter template<\/h3>\n<p>The <a href=\"https:\/\/github.com\/Azure-Samples\/azd-aistudio-starter\">AI Studio starter template<\/a> creates an AI Studio Hub, AI Services Account, and all other dependent resources. A complete list of the resources that can be created with this starter can be found in the <a href=\"https:\/\/github.com\/Azure-Samples\/azd-aistudio-starter\/blob\/main\/README.md\">README<\/a>.<\/p>\n<p>Run <code>azd init -t Azure-Samples\/azd-aistudio-starter<\/code> to get started!<\/p>\n<h3>AI model availability<\/h3>\n<p>Both of these starter templates are configured to use <code>gpt-35-turbo<\/code> and <code>text-embedding-ada-002<\/code>. Model availability varies by Azure region. Before you select your Azure location during <code>azd provision<\/code>, use <a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/openai\/concepts\/models#standard-deployment-model-availability\">Azure OpenAI Service&#8217;s model availability table<\/a> to check where each model is available.<\/p>\n<h2>AI Template Collection<\/h2>\n<p>We recently added <a href=\"https:\/\/aka.ms\/ai-apps\">new AI templates<\/a> to <a href=\"https:\/\/aka.ms\/awesome-azd\">awesome-azd<\/a>! <span class=\"ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak\" dir=\"ltr\">These templates support various use cases and we can&#8217;t wait to see what you build with them<\/span>.<\/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 Azure Developer CLI (azd) support for AI Studio and the new templates to build and deploy AI applications.<\/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-3058","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 Azure Developer CLI (azd) support for AI Studio and the new templates to build and deploy AI applications.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3058","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=3058"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/posts\/3058\/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=3058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/categories?post=3058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/azure-sdk\/wp-json\/wp\/v2\/tags?post=3058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}