Entwirf, erstelle, überprüfe, migriere oder behebe Fehler in Azure Developer CLI (azd) Projekten unter Verwendung von Bicep, Terraform und azure.yaml Konfigurationen.
- GitHub Stars
- 41.038
- Dateien
- 6
- Letzter Commit
- 11. Nov. 2026
- Lizenz
- MIT
- Erlaubte Tools
- —
Was macht der azure-developer-cli Skill?
azure-developer-cli ist ein Agent Skill. Entwirf, erstelle, überprüfe, migriere oder behebe Fehler in Azure Developer CLI (azd) Projekten unter Verwendung von Bicep, Terraform und azure.yaml Konfigurationen.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den azure-developer-cli skill
Diese Skill ermöglicht es Entwicklern, die mit der Microsoft Cloud-Infrastruktur arbeiten, Azure Developer CLI Projekte zu entwerfen, zu erstellen und Fehler zu beheben. Sie unterstützt das Management von azd Projekten durch die Interaktion mit azure.yaml Manifesten, Bicep Templates und Terraform Konfigurationen. Ein Agent sollte diese Skill laden, wenn ein User Infrastruktur migrieren, Deployment-Workflows überprüfen oder umgebungsspezifische Secrets und Hooks konfigurieren muss.
Die Skill konzentriert sich darauf, sichere und umgebungsbewusste Projekte einzuhalten, indem sie spezifische Repository-Konventionen befolgt. Sie nutzt Tools wie azd up, azd provision und azd deploy, um den Lifecycle von Services zu verwalten. Dabei wird Wert auf Sicherheit gelegt, indem das Committen von Credentials oder lokalen State-Dateien verhindert wird, und die Nutzung von Managed Identities sowie Key Vault References wird gefördert. User können sie nutzen, um Application Services zu modellieren, Infrastruktur-Module zu organisieren und gezielte CI/CD-Pipelines mittels Workload Identity Federation aufzubauen.
Was ein agent damit machen kann
- 1Projekt-Manifeste konfigurierenDefiniere Service-Einträge und Mappings für unabhängig deploybare Komponenten innerhalb einer azure.yaml Datei.
- 2Environment Secrets verwaltenSetze sensible Werte für spezifische Umgebungen über sichere CLI-Methoden, anstatt Dateien direkt zu bearbeiten.
- 3Infrastructure as Code implementierenOrganisiere Bicep oder Terraform Dateien in wiederverwendbaren Modulen mit einem zentralen Orchestrierungspunkt.
- 4Deployment-Lifecycles automatisierenErstelle idempotente Skripte für projektweite oder service-spezifische Hooks, um Lücken im Lifecycle zu schließen.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den azure-developer-cli Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den azure-developer-cli Skill in Claude Code installieren
~/.claude/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.claude/skills/azure-developer-cliDen azure-developer-cli Skill in Claude Code (project) installieren
.claude/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli .claude/skills/azure-developer-cliDen azure-developer-cli Skill in Codex installieren
~/.agents/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.agents/skills/azure-developer-cliDen azure-developer-cli Skill in Gemini CLI installieren
~/.gemini/skills/azure-developer-cli/SKILL.md
$ npx degit github/awesome-copilot/skills/azure-developer-cli ~/.gemini/skills/azure-developer-cliDen azure-developer-cli Skill in Claude.ai installieren
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
Automatisierte Checks
Geluften am 15. Nov. 2026Vollständiger Bericht →Hat unsere automatischen Prüfungen bestanden. Das ist kein Sicherheitsaudit: Lesen Sie die Skripte, bevor ein Agent sie ausführt. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbargithub/awesome-copilot/skills/azure-developer-cli is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/azure-dev ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in SkriptenNo scripts in the skill folderBestanden
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Bestanden
- SKILL.md folgt dem Agent-Skills-FormatValid name and description; says when to use it; 135 linesgithub.com/github/awesome-copilot/blob/HEAD/skills/azure-dev ↗Bestanden
SKILL.md
Auf GitHub ansehenAzure 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.
Dateien in diesem Skill
6azure-developer-cli Skill-Fragen
Wie installiere ich den azure-developer-cli Skill in Claude Code?
Führe npx degit github/awesome-copilot/skills/azure-developer-cli ~/.claude/skills/azure-developer-cli aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den azure-developer-cli Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Wie sollte ich Secrets in einem azd Projekt verwalten?
Bevorzuge Managed Identities und RBAC. Nutze Key Vault References und den Befehl 'azd env set-secret', wenn ein Secret unvermeidbar ist.
Welcher IaC-Provider wird für azd Projekte bevorzugt?
Bicep ist der bevorzugte Standard, es sei denn, das Repository oder der User entscheidet sich explizit für Terraform.
Welche Dateien sollten nicht in die Versionsverwaltung aufgenommen werden?
Du solltest niemals .azure, Environment .env Dateien, Credentials, Deployment-Outputs mit Secrets, lokalen Terraform State oder generierte Deployment-Artefakte committen.