Projete, crie, revise, migre ou solucione problemas de projetos Azure Developer CLI (azd) usando configurações Bicep, Terraform e azure.yaml.
- Estrelas no GitHub
- 41.038
- Arquivos
- 6
- Último commit
- 11 de nov. de 2026
- Licença
- MIT
- Ferramentas permitidas
- —
O que a skill azure-developer-cli faz?
azure-developer-cli é uma Agent Skill. Projete, crie, revise, migre ou solucione problemas de projetos Azure Developer CLI (azd) usando configurações Bicep, Terraform e azure.yaml.
Resumo gerado a partir do SKILL.md da skill.
Sobre a skill azure-developer-cli
Projetar, criar e solucionar problemas de projetos Azure Developer CLI é o que esta SKILL permite para desenvolvedores que trabalham com a infraestrutura de nuvem da Microsoft. Ela auxilia no gerenciamento de projetos azd ao interagir com manifestos azure.yaml, templates Bicep e configurações Terraform. Um agente deve carregar esta SKILL quando um usuário precisar migrar infraestrutura, revisar fluxos de trabalho de implantação ou configurar segredos e hooks específicos de um ambiente.
A SKILL foca em manter projetos seguros e conscientes do ambiente, seguindo convenções específicas de repositório. Ela depende de ferramentas como azd up, azd provision e azd deploy para gerenciar o ciclo de vida dos serviços. Enfatiza a segurança ao evitar o commit de credenciais ou arquivos de estado local e incentiva o uso de identidades gerenciadas e referências do Key Vault. Os usuários podem utilizá-la para modelar serviços de aplicação, organizar módulos de infraestrutura e construir pipelines de CI/CD deliberados usando workload identity federation.
O que um agente pode fazer com ela
- 1Configurar manifestos do projetoDefinir entradas de serviço e mapeamento para componentes implantáveis de forma independente dentro de um arquivo azure.yaml.
- 2Gerenciar segredos de ambienteDefinir valores sensíveis para ambientes específicos usando métodos seguros de linha de comando em vez de editar arquivos diretamente.
- 3Implementar infraestrutura como códigoOrganizar arquivos Bicep ou Terraform em módulos reutilizáveis com um ponto de entrada de orquestração central.
- 4Automatizar ciclos de vida de implantaçãoCriar scripts idempotentes para hooks de todo o projeto ou específicos de um serviço para preencher lacunas no ciclo de vida.
Escrito a partir do SKILL.md da skill. Cada caso de uso é verificado com uma citação dele.
Como instalar a skill azure-developer-cli
Cada comando copia a pasta da skill para o diretório de skills do cliente. Reinicie o cliente ou inicie uma nova sessão para carregá-la.Instalar a skill azure-developer-cli no Claude Code
~/.claude/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.claude/skills/azure-developer-cliInstalar a skill azure-developer-cli no Claude Code (project)
.claude/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli .claude/skills/azure-developer-cliInstalar a skill azure-developer-cli no Codex
~/.agents/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.agents/skills/azure-developer-cliInstalar a skill azure-developer-cli no Gemini CLI
~/.gemini/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.gemini/skills/azure-developer-cliInstalar a skill azure-developer-cli no Claude.ai
npx degit github/awesome-copilot/skills/azure-developer-cli azure-developer-cli && zip -r azure-developer-cli.zip azure-developer-cli # claude.ai → Customize → Skills → + → Create skill → Upload a skill → azure-developer-cli.zip
Verificações automatizadas
Executado em 15 de nov. de 2026Relatório completo →Passou nas nossas verificações automáticas. Não é uma auditoria de segurança: leia os scripts antes de deixar um agente executá-los. Como as verificações funcionam
- Repositório de origem vinculado e acessívelgithub/awesome-copilot/skills/azure-developer-cli is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/azure-dev ↗Passou
- Licença de código aberto (OSI)MITspdx.org/licenses/MIT.html ↗Passou
- Commit ou release no último anoLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Passou
- Sem baixar e executar nem roubo de credenciais nos scriptsNo scripts in the skill folderPassou
- Sem instruções ocultas no SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Passou
- Ferramentas pré-aprovadas são restritasNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Passou
- O SKILL.md segue o formato Agent SkillsValid name and description; says when to use it; 135 linesgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Passou
SKILL.md
Ver no GitHubAzure 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:
- Find
azure.yaml, the configuredinfra.path, source projects, deployment scripts,.gitignore, and pipeline definitions. - Read
azure.yamlbefore inferring services or the IaC provider. - Identify whether the task is to create, migrate, review, deploy, or troubleshoot.
- Identify the active environment only when an environment-specific operation is required.
- 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
- Repository layout or
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.envfiles, 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-secretwhen 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, orazd 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
azdproject.
Use these defaults
| 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 |
Implementation workflow
1. Model the application
- Define one
servicesentry 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, andhost. - Keep shared infrastructure in IaC rather than inventing a fake deployable service.
- Declare dependencies with supported
azure.yamlfields instead of relying on file order.
2. Model infrastructure
- Keep
main.bicepormain.tfas 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>-devfor shared environments and<alias>-devfor personal environments. - Use
azd env set,azd env unset, andazd env set-secretrather than editing.envdirectly. - Use
-eor--environmentin scripts and automation so the target is explicit. - Use
azd env refreshto 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
shellexplicitly. Providewindowsandposixvariants 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-promptin 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.yamlpaths 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.
.gitignoreexcludes.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.
Arquivos desta skill
6Perguntas sobre a skill azure-developer-cli
Como instalo a skill azure-developer-cli no Claude Code?
Execute npx degit github/awesome-copilot/skills/azure-developer-cli ~/.claude/skills/azure-developer-cli. O Claude Code carrega skills de ~/.claude/skills (todos os projetos) ou .claude/skills (um projeto) e usa uma skill quando a descrição dela corresponde à tarefa.
Quais clientes podem usar a skill azure-developer-cli?
Qualquer cliente que leia o formato Agent Skills: Claude Code, Codex, Gemini CLI e claude.ai (envie como ZIP). Scripts da skill são executados apenas onde o cliente permite execução de código.
Como devo gerenciar segredos em um projeto azd?
Prefira identidades gerenciadas e RBAC. Use referências do Key Vault e o comando 'azd env set-secret' quando o uso de um segredo for inevitável.
Qual é o provedor de IaC preferencial para projetos azd?
O Bicep é o padrão preferencial, a menos que o repositório ou o usuário escolha especificamente o Terraform.
Quais arquivos devem ser excluídos do controle de versão?
Você nunca deve commitar pastas .azure, arquivos de ambiente .env, credenciais, outputs de implantação que contenham segredos, estado local do Terraform ou artefatos de implantação gerados.