azure-developer-cli

软件研发 云服务与部署 6 文件 EN 原文

'Design, create, review, migrate, or troubleshoo

'Design, create, review, migrate, or troubleshoot Azure Developer CLI (azd) projects using current Microsoft guidance. Use for azd, azure.yaml, AZD templates, Bicep or Terraform under infra, AZD environments and secrets, hooks, deployment workflows, and azd-managed CI/CD.'

说明语言:英文

来源githubawesome-copilot ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/github/awesome-copilot --skill azure-developer-cli

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: azure-developer-cli description: 'Design, create, review, migrate, or troubleshoot Azure Developer CLI (azd) projects using current Microsoft guidance. Use for azd, azure.yaml, AZD templates, Bicep or Terraform under infra, AZD environments and secrets, hooks, deployment workflows, and azd-managed CI/CD.' license: MIT ---

Azure Developer CLI best practices

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.

Start with repository discovery

Before editing:

  1. Find azure.yaml, the configured infra.path, source projects, deployment scripts, .gitignore, and pipeline definitions.
  2. Read azure.yaml before inferring services or the IaC provider.
  3. Identify whether the task is to create, migrate, review, deploy, or troubleshoot.
  4. Identify the active environment only when an environment-specific operation is required.
  5. Read the relevant reference:
  6. Repository layout or azure.yaml: references/project-structure.md
  7. Bicep, Terraform, parameters, outputs, or environments: references/iac-and-environments.md
  8. Secrets, hooks, CI/CD, deployment, or troubleshooting: references/security-cicd-operations.md
  9. Product details that may have changed: references/official-docs.md

Do not assume the default infra path, the default Bicep provider, or a single service when azure.yaml says otherwise.

Apply safety guardrails

Use these defaults

ConcernPreferred default
Project manifestOne azure.yaml at the repository root
Application codesrc/<service-name> per independently deployable service
Infrastructureinfra with a thin entry point and reusable modules
IaC providerBicep unless the repository or user chooses Terraform
Deployment environmentsSeparate named environments for dev, test, staging, and production
Local AZD state.azure/<environment-name> and excluded from source control
Shared environment stateAZD remote environments backed by Azure Blob Storage
SecretsManaged identity/RBAC first, then Key Vault references
Automation scriptsShort, idempotent scripts under scripts/azd
CI authenticationWorkload identity federation/OIDC where supported
Routine developmentazd up for simple workflows; separate phases for controlled workflows

Implementation workflow

1. Model the application

2. Model infrastructure

3. Model environments

4. Add hooks only for lifecycle gaps

5. Build CI/CD deliberately

Validate before finishing

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:

Report the result

State:

Do not claim deployment success unless the target environment was actually deployed and verified.

同类技能
agents-sdkairunway-aks-setupappinsights-instrumentationaws-cdk-python-setupaws-cloudwatch-investigationaws-cost-optimizeaws-resource-health-diagnoseaws-resource-query
本页内容来自开源项目 github, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。