Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)40k · #7081

azure-developer-cli

Ce qu’il fait

Cet outil vous aide à créer et gérer des projets pour le cloud Azure. Il suit les bonnes pratiques de Microsoft pour que vos projets soient bien organisés, sécurisés et faciles à utiliser.

Quand l’utiliser

  • ✓Lorsque vous démarrez un nouveau projet sur Azure.
  • ✓Lorsque vous souhaitez organiser ou améliorer un projet existant.
  • ✓Lorsque vous avez besoin de mettre en place un déploiement automatique (CI/CD).

Lien du skill

https://github.com/github/awesome-copilot/blob/main/skills/azure-developer-cli/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/azure-developer-cli/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Comment configurer mon projet pour qu'il soit sécurisé et facile à déployer sur Azure ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'outil analyse votre projet, repère les fichiers importants comme « azure.yaml » et les scripts d'infrastructure, puis suggère ou applique les bonnes pratiques d'organisation et de sécurité.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

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 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

…

Questions fréquentes

Qu'est-ce que « azure.yaml » ?

C'est le fichier de configuration principal qui décrit votre projet Azure, notamment les services qu'il contient et la façon dont ils sont reliés.

Qu'est-ce que les « hooks » ?

Ce sont de petits scripts qui effectuent des tâches précises pendant le cycle de vie de votre projet, par exemple avant ou après un déploiement.

Comment l'outil gère-t-il les secrets (mots de passe, clés) ?

Il privilégie des méthodes sécurisées comme les identités managées et Azure Key Vault, pour éviter que les secrets ne soient exposés dans les fichiers de configuration ou le code.

Détails

Description originale de l’auteur

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.

repo: github/awesome-copilot

Popularité

Étoiles GitHub
40k
Position au classement
#7081
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires