New to Claude Skills? Learn how to install them →

github on GitHub

Azure Developer CLI

OfficialFree

Streamline your Azure project workflows with best practices.

by github37.7k stars on github/awesome-copilot
3 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Azure Developer CLI does

The Azure Developer CLI skill provides a comprehensive guide for designing, creating, reviewing, migrating, and troubleshooting Azure Developer CLI (azd) projects. It leverages current Microsoft guidance to help developers and teams produce maintainable and secure projects that are aware of their environments. This skill is particularly valuable for those working with Azure services, Infrastructure as Code (IaC) tools like Bicep and Terraform, and CI/CD workflows, ensuring that best practices are followed throughout the development lifecycle.

With this skill, users can start by discovering the repository structure, including the critical azure.yaml file that defines the project's infrastructure and services. It emphasizes the importance of understanding the project's context before making changes, such as identifying the active environment and reviewing relevant documentation. By following the outlined safety guardrails, developers can avoid common pitfalls, such as committing sensitive information or making unauthorized changes to Azure resources.

The skill also provides detailed workflows for modeling applications, infrastructure, and environments, ensuring that projects are organized and scalable. It encourages the use of predictable naming conventions and proper management of secrets, which enhances security and maintainability. Furthermore, it includes guidelines for implementing CI/CD pipelines deliberately, emphasizing the need for validation checks before deployment. This structured approach helps teams to collaborate effectively while minimizing risks associated with cloud resource management.

Overall, the Azure Developer CLI skill is designed for developers and DevOps professionals who want to optimize their Azure project workflows and adhere to best practices. By utilizing this skill, users can enhance their productivity, reduce errors, and ensure that their projects are built on a solid foundation of security and maintainability.

When to use it

Use this skill when starting new Azure projects or when reviewing existing ones to ensure they align with best practices.

When not to use it

Avoid this skill if you're not working with Azure or if your project does not involve Infrastructure as Code practices.

What you can build with it

Starting a New Azure Project

Utilize this skill to set up a new Azure project by following best practices for project structure and configuration.

Reviewing Existing Projects

Leverage the skill to assess existing Azure projects for compliance with best practices and identify areas for improvement.

Implementing CI/CD Pipelines

Use this skill to guide the setup of CI/CD pipelines for Azure projects, ensuring robust and secure deployment workflows.

How to install Azure Developer CLI

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/azure-developer-cli --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by github

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:

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.

Frequently asked questions about Azure Developer CLI

Similar skills