Design, create, review, migrate, or troubleshoot Azure Developer CLI (azd) projects using current Microsoft guidance. Use for azd, azure.yaml, AZD templates, Bi
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-azure-developer-cli-e005e5f66bdc ,按照其中的说明把「azure-developer-cli」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill to produce maintainable, secure, environment-aware azd projects. Prefer repository conventions when they are already coherent, and make the smallest complete change that improves the project.
Before editing:
azure.yaml, the configured infra.path, source projects, deployment scripts, .gitignore, and pipeline definitions.azure.yaml before inferring services or the IaC provider.azure.yaml: references/project-structure.mdDo not assume the default infra path, the default Bicep provider, or a single service when azure.yaml says otherwise.
.azure, environment .env files, credentials, deployment outputs containing secrets, local Terraform state, or generated deployment artifacts.azure.yaml, IaC parameter files, hooks, source control, command arguments that will be logged, or IaC outputs.azd env set-secret when a secret is unavoidable.azd up, azd provision, azd deploy, azd down, or azd pipeline config.azd project.| Concern | Preferred default |
|---|---|
| Project manifest | One azure.yaml at the repository root |
| Application code | src/<service-name> per independently deployable service |
| Infrastructure | infra with a thin entry point and reusable modules |
| IaC provider | Bicep unless the repository or user chooses Terraform |
| Deployment environments | Separate named environments for dev, test, staging, and production |
| Local AZD state | .azure/<environment-name> and excluded from source control |
| Shared environment state | AZD remote environments backed by Azure Blob Storage |
| Secrets | Managed identity/RBAC first, then Key Vault references |
| Automation scripts | Short, idempotent scripts under scripts/azd |
| CI authentication | Workload identity federation/OIDC where supported |
| Routine development | azd up for simple workflows; separate phases for controlled workflows |
services entry for each independently deployable component.project, language, and host.azure.yaml fields instead of relying on file order.main.bicep or main.tf as the orchestration entry point.<project>-dev for shared environments and <alias>-dev for personal environments.azd env set, azd env unset, and azd env set-secret rather than editing .env directly.-e or --environment in scripts and automation so the target is explicit.azd env refresh to synchronize deployment outputs after another actor changes an environment.scripts/azd.shell explicitly. Provide windows and posix variants when necessary.azd hooks run <hook-name>.azd pipeline config.--no-prompt in automation.Run only checks applicable to the repository:
Application: existing formatter, linter, type-check, build, and tests
Bicep: az bicep build --file infra/main.bicep
Terraform: terraform fmt -check -recursive
terraform init -backend=false
terraform validate
AZD hooks: azd hooks run <hook-name>
Packaging: azd package
For a Bicep what-if or Terraform plan, choose the correct deployment scope and environment. These checks can authenticate to Azure or read remote state, so follow the safety guardrails.
Verify that:
azure.yaml paths exist and service settings match the source projects.azure.yaml..gitignore excludes .azure, secrets, local state, and generated artifacts.State:
Do not claim deployment success unless the target environment was actually deployed and verified.