azure-well-architected-review
它能做什么
这个工具会检查你的 Azure 云基础设施是否遵循安全性、可靠性和高效性方面的最佳实践。它会分析你的基础设施代码和线上运行环境,找出可以改进的地方。
适用场景
- ✓当你开始一个新的 Azure 项目时。
- ✓在对基础设施做了重大改动之后。
- ✓当你想确保应用安全且成本合理时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/azure-well-architected-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我检查一下 Azure 基础设施,告诉我在哪些地方可以改进,让它更安全、更可靠。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会把 Microsoft 的最佳实践与你当前的云配置和代码进行对比,检查设置是否正确,并给出修复建议。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Azure Well-Architected Review
This workflow performs a structured Azure Well-Architected Framework (WAF) review against your workload's IaC files and deployed infrastructure. It identifies risks across all 5 WAF pillars and creates GitHub issues to track remediation.
Prerequisites
- Azure CLI (
az) configured and authenticated - IaC files present in the repository (Bicep, Terraform, or ARM templates)
- GitHub MCP server configured and authenticated
Workflow Steps
Step 1: Load Well-Architected Framework Reference
Fetch current Azure WAF best practices:
https://learn.microsoft.com/en-us/azure/well-architected/- Service guides for the Azure services in use (
https://learn.microsoft.com/en-us/azure/well-architected/service-guides/) - Workload-specific guidance relevant to the workload type (SaaS, mission-critical, AI, etc.)
If the microsoft.docs.mcp MCP server is available, use it to query the latest pillar checklists and service-specific recommendations.
Step 2: Discover IaC & Architecture
Establish the review scope, then inventory both the code and the live environment:
- Confirm the Azure scope: Ask the user which subscription(s)/resource group(s) are in scope, or infer them from IaC parameters and confirm.
- Scan the repository for IaC files:
- Bicep:
**/*.bicep,bicepconfig.json - Terraform:
**/*.tf(azurerm/azapi providers) - ARM templates:
**/azuredeploy*.json,**/*.template.json, files with$schemacontainingdeploymentTemplate
- Bicep:
- Inventory live resources (always, even when IaC exists):
az resource list --resource-group <rg> --output json(or subscription-wide), plus targetedaz <service> showcalls for configuration details the pillar checks need. - Compare IaC with live inventory: Flag drift — resources present in Azure but absent from IaC (portal-created), resources defined in IaC but not deployed, and configuration mismatches. Record drift findings for Step 3 (they typically map to the Operational Excellence pillar).
Identify key Azure services in use (compute, data, networking, security, observability) and generate a Mermaid architecture diagram.
Step 3: Pillar-by-Pillar Review
Pillar 1: Reliability
- Availability zones enabled for zonal services (VMs, VMSS, AKS node pools, App Service, SQL, Storage ZRS)
- Production SKUs support the required SLA (no Basic/Free tiers on critical paths)
- Azure SQL / Cosmos DB backup and point-in-time restore configured with appropriate retention
- Geo-redundancy configured where RPO requires it (GRS/RA-GRS storage, SQL failover groups, Cosmos DB multi-region)
- Autoscale rules configured for App Service plans, VMSS, AKS (no fixed single instance for production)
- Health probes configured on Load Balancer / Application Gateway / Front Door backends
- Dead-lettering enabled for Service Bus queues/subscriptions and Event Grid subscriptions
- Retry policies with exponential backoff implemented for transient fault handling
- Disaster recovery plan defined (documented RTO/RPO, tested failover)
Pillar 2: Security
- Managed identities used instead of service principals with secrets or connection strings
- No hardcoded credentials, keys, or connection strings in IaC or code
- Secrets stored in Azure Key Vault with RBAC authorization (not access policies)
- Storage accounts deny public blob access and disallow shared key access where possible
- Private endpoints (or at minimum service endpoints + firewall rules) for PaaS data services
- NSGs restrict inbound traffic to minimum required ports/CIDRs (no
*→*allow rules) - TLS 1.2+ enforced on all endpoints (
minimumTlsVersion,httpsOnly) - Azure RBAC follows least privilege (no Owner/Contributor at subscription scope for workload identities)
- Microsoft Defender for Cloud enabled on relevant resource types (
az security pricing list) - Azure WAF (Application Gateway or Front Door) configured for public-facing web endpoints
- Diagnostic settings send security logs to Log Analytics / Microsoft Sentinel
Pillar 3: Cost Optimization
- Reservations or savings plans evaluated for steady-state compute (VMs, App Service, SQL)
- Storage lifecycle management policies move blobs to cool/archive tiers
- Right-sized SKUs based on actual utilization (no oversized VMs/App Service plans)
…
常见问题
Azure Well-Architected Framework 的 5 大支柱是什么?
这是构建云应用的 5 个关键领域:可靠性、安全性、成本优化、卓越运营和性能效率。
什么是 IaC?
IaC 是 Infrastructure as Code(基础设施即代码)的缩写,指通过配置文件而不是在界面上手动点击来管理和部署云基础设施的做法。
工具发现问题后会怎样?
它会在 GitHub 上为你创建 issue(任务),方便你跟踪并修复在基础设施中发现的问题。
详情
作者的原始描述
Perform an Azure Well-Architected Framework review of the current workload IaC and architecture, generating findings and GitHub issues for improvements.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7089
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。