Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Azure Developer CLIの最新アップデートを追う

Kento.Yamada
March 22, 2025
140

Azure Developer CLIの最新アップデートを追う

.NETラボ 勉強会 2025年3月(LT成分多め)の登壇資料です。
https://dotnetlab.connpass.com/event/347207/

スライド内のリンク

なんでもCopilot 7月2日登壇
https://speakerdeck.com/pepe223223/nandemocopilotnokoremadetokorekara-aoai-dev-day-pureibentoban?slide=21

Awesome AZD Templates
https://azure.github.io/awesome-azd/

Azure Developer CLIの振り返りとDeep Dive
https://speakerdeck.com/ymd65536/azure-developer-clinozhen-rifan-ritodeep-dive

Azure Developer CLIで優勝していくことにするわね
https://qiita.com/ymd65536/items/f956fa93bb8831bbc187

Azure Developer CLI機能のバージョン管理とリリース戦略
https://learn.microsoft.com/ja-jp/azure/developer/azure-developer-cli/feature-versioning

リリース
https://github.com/Azure/azure-dev/releases

Azure Developer CLI (azd) – September 2023 Release
https://devblogs.microsoft.com/azure-sdk/azure-developer-cli-azd-september-2023-release/

azdでAIアプリをはじめるためのスターター
https://github.com/Azure-Samples/azd-ai-starter
https://github.com/Azure-Samples/azd-aistudio-starter

Azure Deployment stacksとは
https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/arm-deployment-stacks-now-ga/4145469

Kento.Yamada

March 22, 2025
Tweet

More Decks by Kento.Yamada

Transcript

  1. 山田顕人(Kento.Yamada) @ymd65536 自己紹介 4 仕事:MSP向け内製システムの開発、マルチクラウドエンジニア/デベロッパー 活動:.NETラボ勉強会の運営 Microsoft MVP for Developer

    Technologies(2024年〜) AWS Community Builders Google Cloud Partner Top Engineer 2025 DataAnalytics Google Cloud Partner Tech Blog Challenge 2023 Cloud AI/ML 部門 LINE API Expert(2024年〜) LAPRAS OUTPUT AWARD 2024 01 • 最近のトピック ◦ 50kmのエクストリームウォークを完歩! ◦ MVPになって1年 ◦ 今年7月になんコパ登壇
  2. 12 azd auth login 認証(最初はazd loginというコマンドだった) azd config list azdの設定(v1.4.3から非推奨)

    azd config show azdの設定 azd env list azdで利用する環境変数のリスト azd package ビルドとパッケージング azd provision 環境構築 azd deploy デプロイ azd up package,provision,deployを1工程で実行 azd down リソースを削除する。azd upの逆 azd add コンポーネントを追加する azd infra インフラの管理
  3. 図解 コマンドの使い方 13 azd auth login azd package azd provision

    azd deploy azd up azd down azd init azd env azd config azd add azd infra
  4. v1.4.3 - v1.4.4(2023-10-24~2023-11-10) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.4.3 • [2787] Added azd config show

    and deprecated azd config list. https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.4.4 • [2893] Added command azd show. • [2925] Promote simplified azd init and Cloud Native buildpacks features to beta 👉 サブコマンドの変更とbuildpacksの対応(beta) 17
  5. [2787] Added azd config show and deprecated azd config list.

    azd config list じゃなくてazd config showにしようぜって話 18
  6. v1.5.0 - v1.5.1 (2023-11-20~2023-12-20) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.5.0 [2767] Adds support for Azure

    Deployments Environments. https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.5.1 • [2998] Adds support for Azure Storage Tables and Queues on Aspire projects. • [3052] Adds target argument support for docker build. • [2488] Adds support to override behavior of the KUBECONFIG environment variable on AKS. • [3075] Adds support for dockerfile.v0 on Aspire projects. • [2992] Adds support for dapr on Aspire projects. 21
  7. v1.6.0(2024-02-13) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.6.0 • [3269] Adds support for external/prebuilt container image

    references • [3251] Adds additional configuration resolving container registry names • [3249] Adds additional configuration resolving AKS cluster names • [3223] Updates AKS core modules for azd to easily enable RBAC clusters • [3211] Adds support for RBAC enabled AKS clusters using kubelogin • [3196] Adds support for Helm and Kustomize for AKS service targets • [3173] Adds support for defining customizable azd up workflows 22
  8. v1.6.0(2024-02-13) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.6.0 • dotnet Aspire additions: ◦ [3164] Azure Cosmos

    DB. ◦ [3226] Azure SQL Database. ◦ [3276] Secrets handling improvement. • [3155] Adds support to define secrets and variables for azd pipeline config. 24
  9. v1.6.1(2024-02-15) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.6.1 bug fixなので割愛(なお、以下の内容) • [3375] Fixes issues deploying to

    AKS service targets • [3373] Fixes resolution of AZD compatible templates within azure dev center catalogs • [3372] Removes requirement for dev center projects to include an infra folder 25
  10. v1.7.0(2024-03-12) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.7.0 • [3450] Adds support for pushing container images

    to external container registries • [3452] Adds support for other clouds • dotnet Aspire: ◦ [3349] Adds support for bicep and prompts for parameters ◦ [3411] Adds support for value.v0 ◦ [3425] Sets DOTNET_ENVIRONMENT when running AppHost 26
  11. v1.8.0(2024-04-09) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.8.0 • [3569] Adds --from-code flag to initialize from

    existing code when running azd init • dotnet Aspire: ◦ [3612] Supports Aspire apps with multiple exposed ports ◦ [3484] Discovers export port from the result of dotnet publish ◦ [3556] Adds Aspire volumes support ◦ [3561] Supports more input generation in Aspire manifest 27
  12. 補足:[3569] Adds --from-code flag to initialize from existing code when

    running azd init この機能はv1.3.0で公開 既存のアプリケーションからazdテンプレートを自動で生成する機能 参考: https://devblogs.microsoft.com/azure-sdk/azure-developer-cli-azd-septe mber-2023-release/ 28
  13. v1.8.1 - v1.8.2(2024-04-23~2024-04-30) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.8.1 • [3731] Support Data Protection Runtime

    feature for .NET Aspire in ACA under feature flag azd config set alpha.aspire.autoConfigureDataProtection on • [3715] Improved security to prevent committing an environment to the repository(要するに.gitignoreで安全に開発できるって話) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.8.2 • [3804] Add user vault storage for development secrets • [3755] Store secure() Bicep parameters outside source tree 29
  14. v1.9.0(2024-05-07) https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.9.0 • [3718] Deploy AI/ML studio online endpoints with

    host ml.endpoint. Starter templates azd-ai-starter and azd-aistudio-starter are available to get started with ease. • [3840] Filter templates when running azd init or azd template list with --filter • .NET Aspire: ◦ [3267] Support services with multiple exposed ports ◦ [3820] Container resources now supports reference expressions, and are now modeled the same as project resources 30
  15. v1.9.1- v.19.2 bug fixなので割愛(なお、以下の内容) v1.9.1 • [3876] Take infra section

    of azure.yaml into account. • [3881] Make azd to wait until the expected state can be seen from the online endpoint. • [3763] Add deployment status tracking for linux web apps. • [3897] Update ResolvedRaw() to remove reference to the vault. • [3898] Easy Init: Improve handling for empty state. • [3903] Fix type issues in PromptDialog with external prompting. v1.9.2 • [3915] Revert - Add deployment status tracking for linux web apps. 32
  16. v1.9.4 https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.9.4 • [3924] Updating azd pipeline config to support

    Federated Credential for Azure DevOps. • [3553] Support swa-cli.config.json for Azure Static Web Apps. • [3955] Adding alpha feature alpha.aca.persistDomains. • [3723] Add --managed-identity to azd auth login. • [3965] Add deployment status tracking for linux web apps. 34
  17. v1.9.4 • [4003] Add support for deploying flex-consumption function apps.

    • [4008] Add support for container.v1 [Aspire]. • [4030] Prompt to add pipeline definition file during azd pipeline config. • [3790] Adding alpha feature azd.operations to support .Net Aspire bind mounts. • [4049] Adding pipeline config --applicationServiceManagementReference. 35
  18. v1.10.0 https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.10.0 • [4165] Add support for alpha feature Azure

    Deployment stacks. • [4236] Support args on container.{v0,v1}. • [4257] Add support for multiple hooks per event. • [4190] Add support for .azuredevops folder. • [4161] Add remote builds support with Azure Container Registry. 37
  19. 補足:Azure Deployment stacksとは 2024年5月24日にGAされたサービス • Azure リソースのコレクションを 1 つのユニットとして管理 •

    更新と削除 (クリーンアップ) を高速化 参考: https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/ar m-deployment-stacks-now-ga/4145469 38
  20. v1.10.0 • [4254] Add support for environment variable substitution for

    source container image. • [4203] Add GitHub as template source configuration option. • [4208] Add support for Java Azure Functions. 39
  21. v1.10.1~v1.13.1 • azd addの追加 (v1.11.0) ◦ コンポーネント単位でサービスを追加できる • azd infra

    synthの追加(v1.11.0) ◦ インフラ管理コマンド • dotnet publishとの連携(v1.11.1) ◦ ビルドエクスペリエンスの向上(dotnet開発者向け) 40