Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)40k · #7081

azure-developer-cli

Skill này làm gì

Công cụ này giúp bạn tạo và quản lý dự án cho đám mây Azure. Nó tuân theo thực hành tốt nhất của Microsoft để đảm bảo dự án được tổ chức, an toàn và dễ dùng.

Khi nào nên dùng

  • ✓Khi bắt đầu một dự án mới trên Azure.
  • ✓Khi muốn tổ chức hoặc cải thiện một dự án có sẵn.
  • ✓Khi cần thiết lập triển khai tự động (CI/CD).

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/azure-developer-cli/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để cấu hình dự án của tôi an toàn và dễ triển khai trên Azure?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ phân tích dự án, xác định các tệp quan trọng như 'azure.yaml' và các script hạ tầng, rồi gợi ý hoặc áp dụng thực hành tốt nhất về tổ chức và bảo mật.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

…

Câu hỏi thường gặp

“azure.yaml” là gì?

Đó là tệp cấu hình chính mô tả dự án Azure của bạn, như các dịch vụ nó chứa và cách chúng kết nối.

“Hooks” là gì?

Đó là các script nhỏ thực hiện tác vụ cụ thể trong vòng đời dự án, như trước hoặc sau khi triển khai.

Công cụ xử lý bí mật (mật khẩu, khóa) thế nào?

Nó ưu tiên các cách bảo mật như managed identity và Azure Key Vault, không để bí mật bị lộ trong tệp cấu hình hoặc mã.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7081
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự