agentleFS
GitHubKnown publishergithub/awesome-copilot/skills/azure-developer-cli/SKILL.md

azure-developer-cli

Skill40k starsChanged 2 months agoMITView on GitHub

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.

  • Reads credentials

Trending

More talk lately.about the whole repository

Dec 2025: 8 mentionsJan 2026: 4 mentionsFeb 2026: 5 mentionsMar 2026: 9 mentionsApr 2026: 4 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 4 mentionsSep 2026: 8 mentionsOct 2026: 4 mentionsNov 2026: 3 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the github/awesome-copilot repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about github/awesome-copilot

The biggest 5 of 79 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 79

Talked about on Bluesky, GitHub and Hacker News (79 times).

On Bluesky · 42

37 more on Bluesky

On GitHub · 32

27 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

32 rules. About 0 are common, 16 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use this skill to produce maintainable, secure, environment-aware azd projects.

    line 9
  2. Very specific:

    Read azure.yaml before inferring services or the IaC provider.

    line 16
  3. Distinctive:

    Read the relevant reference:

    line 19
  4. Very specific:

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

    line 25
  5. Very specific:

    Never commit .azure, environment .env files, credentials, deployment outputs containing secrets, local Terraform state, or generated …

    line 29
  6. Very specific:

    Never put literal secrets in azure.yaml, IaC parameter files, hooks, source control, command arguments that will be logged, or IaC outputs.

    line 30
  7. Very specific:

    Prefer managed identities and RBAC.

    line 31
  8. Distinctive:

    Before a command that can create, modify, or delete Azure resources, confirm the target environment, subscription, tenant, region, and …

    line 32
  9. Very specific:

    Treat an explicit user request to deploy, provision, destroy, or configure a pipeline as approval for that named action.

    line 33
  10. Distinctive:

    Do not replace Bicep with Terraform, Terraform with Bicep, or an established hosting service unless the user requests that architectural …

    line 34
  11. Distinctive:

    Keep service keys stable because they participate in resource discovery and deployment.

    line 58
  12. Distinctive:

    Keep shared infrastructure in IaC rather than inventing a fake deployable service.

    line 60
  13. Very specific:

    Keep main.bicep or main.tf as the orchestration entry point.

    line 65
  14. Distinctive:

    Use deterministic naming and consistent tags that include the project and environment.

    line 69
  15. Distinctive:

    Add role assignments to identities rather than distributing service keys.

    line 70
  16. Distinctive:

    Use infrastructure layers only when separate scopes or lifecycle dependencies justify them.

    line 71
  17. Very specific:

    Use predictable names such as <project>-dev for shared environments and <alias>-dev for personal environments.

    line 75
  18. Very specific:

    Use azd env set, azd env unset, and azd env set-secret rather than editing .env directly.

    line 76
  19. Very specific:

    Use -e or --environment in scripts and automation so the target is explicit.

    line 77
  20. Very specific:

    Use azd env refresh to synchronize deployment outputs after another actor changes an environment.

    line 78
  21. Distinctive:

    Prefer declarative IaC and native service configuration over hooks.

    line 83
  22. Distinctive:

    Use root hooks for project-wide behavior and service hooks for service-specific behavior.

    line 84
  23. Very specific:

    Keep nontrivial hook logic in versioned scripts under scripts/azd.

    line 85
  24. Very specific:

    Test a hook independently with azd hooks run <hook-name>.

    line 88
  25. Very specific:

    Keep the pipeline definition with the template and review generated changes from azd pipeline config.

    line 92
  26. Distinctive:

    Use short-lived federated credentials where the provider supports them.

    line 93
  27. Distinctive:

    Run tests and IaC validation before provisioning.

    line 94
  28. Very specific:

    Use explicit environments and --no-prompt in automation.

    line 95
  29. Distinctive:

    Add protected production environments and approval gates.

    line 96
  30. Distinctive:

    Run only checks applicable to the repository:

    line 101
  31. Distinctive:

    No secret appears in tracked content or command output.

    line 121
  32. Distinctive:

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

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:
    • Repository layout or azure.yaml: references/project-structure.md
    • Bicep, Terraform, parameters, outputs, or environments: references/iac-and-environments.md
    • Secrets, hooks, CI/CD, deployment, or troubleshooting: references/security-cicd-operations.md
    • 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

  • Never commit .azure, environment .env files, credentials, deployment outputs containing secrets, local Terraform state, or generated deployment artifacts.
  • Never put literal secrets in azure.yaml, IaC parameter files, hooks, source control, command arguments that will be logged, or IaC outputs.
  • Prefer managed identities and RBAC. Use Key Vault references and azd env set-secret when a secret is unavoidable.
  • Before a command that can create, modify, or delete Azure resources, confirm the target environment, subscription, tenant, region, and expected scope.
  • Treat an explicit user request to deploy, provision, destroy, or configure a pipeline as approval for that named action. Otherwise, ask before running azd up, azd provision, azd deploy, azd down, or azd pipeline config.
  • Do not replace Bicep with Terraform, Terraform with Bicep, or an established hosting service unless the user requests that architectural change.
  • Preserve resources and state owned outside the current azd project.

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

  • Define one services entry for each independently deployable component.
  • Keep service keys stable because they participate in resource discovery and deployment.
  • Map each service to its actual project, language, and host.
  • Keep shared infrastructure in IaC rather than inventing a fake deployable service.
  • Declare dependencies with supported azure.yaml fields instead of relying on file order.

2. Model infrastructure

  • Keep main.bicep or main.tf as the orchestration entry point.
  • Split reusable or independently understandable infrastructure into modules.
  • Parameterize environment-specific values; do not fork the IaC tree per environment.
  • Output only stable, nonsecret values required by deployment or application configuration.
  • Use deterministic naming and consistent tags that include the project and environment.
  • Add role assignments to identities rather than distributing service keys.
  • Use infrastructure layers only when separate scopes or lifecycle dependencies justify them.

3. Model environments

  • Use predictable names such as <project>-dev for shared environments and <alias>-dev for personal environments.
  • Use azd env set, azd env unset, and azd env set-secret rather than editing .env directly.
  • Use -e or --environment in scripts and automation so the target is explicit.
  • Use azd env refresh to synchronize deployment outputs after another actor changes an environment.
  • Configure AZD remote state when a team shares environment state.

4. Add hooks only for lifecycle gaps

  • Prefer declarative IaC and native service configuration over hooks.
  • Use root hooks for project-wide behavior and service hooks for service-specific behavior.
  • Keep nontrivial hook logic in versioned scripts under scripts/azd.
  • Set shell explicitly. Provide windows and posix variants when necessary.
  • Make hooks idempotent, noninteractive in CI, and fail on errors unless failure is intentionally nonblocking.
  • Test a hook independently with azd hooks run <hook-name>.

5. Build CI/CD deliberately

  • Keep the pipeline definition with the template and review generated changes from azd pipeline config.
  • Use short-lived federated credentials where the provider supports them.
  • Run tests and IaC validation before provisioning.
  • Use explicit environments and --no-prompt in automation.
  • Add protected production environments and approval gates.
  • For Terraform, configure protected remote state before pipeline setup and account for current AZD authentication limitations.

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:

  • azure.yaml paths exist and service settings match the source projects.
  • The IaC entry point and provider agree with azure.yaml.
  • Required deployment outputs match the variables consumed by services, hooks, and pipelines.
  • .gitignore excludes .azure, secrets, local state, and generated artifacts.
  • No secret appears in tracked content or command output.
  • Documentation explains prerequisites, environment creation, deployment, verification, and cleanup.

Report the result

State:

  • The files and behavior changed.
  • The IaC provider and environment assumptions.
  • The checks performed.
  • Any cloud-changing command deliberately not run.
  • Any beta or preview feature the solution relies on.

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.