azure-resource-health-diagnose
它能做什么
这个工具会检查一个 Azure 云资源的健康状况,通过日志和性能数据找出问题,并给出修复计划。
适用场景
- ✓Azure 服务没有按预期工作时。
- ✓想了解某个 Azure 资源为什么变慢时。
- ✓收到 Azure 资源问题的告警时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/azure-resource-health-diagnose/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析一下我的虚拟机“my-web-server”的健康状况,并告诉我怎么修复这些问题。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先查阅诊断的最佳实践。然后找到你的 Azure 资源,检查其当前状态,并分析日志和性能数据,找出问题的原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Azure Resource Health & Issue Diagnosis
This workflow analyzes a specific Azure resource to assess its health status, diagnose potential issues using logs and telemetry data, and develop a comprehensive remediation plan for any problems discovered.
Prerequisites
- Azure MCP server configured and authenticated
- Target Azure resource identified (name and optionally resource group/subscription)
- Resource must be deployed and running to generate logs/telemetry
- Prefer Azure MCP tools (
azmcp-*) over direct Azure CLI when available
Workflow Steps
Step 1: Get Azure Best Practices
Action: Retrieve diagnostic and troubleshooting best practices Tools: Azure MCP best practices tool Process:
- Load Best Practices:
- Execute Azure best practices tool to get diagnostic guidelines
- Focus on health monitoring, log analysis, and issue resolution patterns
- Use these practices to inform diagnostic approach and remediation recommendations
Step 2: Resource Discovery & Identification
Action: Locate and identify the target Azure resource Tools: Azure MCP tools + Azure CLI fallback Process:
Resource Lookup:
- If only resource name provided: Search across subscriptions using
azmcp-subscription-list - Use
az resource list --name <resource-name>to find matching resources - If multiple matches found, prompt user to specify subscription/resource group
- Gather detailed resource information:
- Resource type and current status
- Location, tags, and configuration
- Associated services and dependencies
- If only resource name provided: Search across subscriptions using
Resource Type Detection:
- Identify resource type to determine appropriate diagnostic approach:
- Web Apps/Function Apps: Application logs, performance metrics, dependency tracking
- Virtual Machines: System logs, performance counters, boot diagnostics
- Cosmos DB: Request metrics, throttling, partition statistics
- Storage Accounts: Access logs, performance metrics, availability
- SQL Database: Query performance, connection logs, resource utilization
- Application Insights: Application telemetry, exceptions, dependencies
- Key Vault: Access logs, certificate status, secret usage
- Service Bus: Message metrics, dead letter queues, throughput
- Identify resource type to determine appropriate diagnostic approach:
Step 3: Health Status Assessment
Action: Evaluate current resource health and availability Tools: Azure MCP monitoring tools + Azure CLI Process:
Basic Health Check:
- Check resource provisioning state and operational status
- Verify service availability and responsiveness
- Review recent deployment or configuration changes
- Assess current resource utilization (CPU, memory, storage, etc.)
Service-Specific Health Indicators:
- Web Apps: HTTP response codes, response times, uptime
- Databases: Connection success rate, query performance, deadlocks
- Storage: Availability percentage, request success rate, latency
- VMs: Boot diagnostics, guest OS metrics, network connectivity
- Functions: Execution success rate, duration, error frequency
Step 4: Log & Telemetry Analysis
Action: Analyze logs and telemetry to identify issues and patterns Tools: Azure MCP monitoring tools for Log Analytics queries Process:
Find Monitoring Sources:
- Use
azmcp-monitor-workspace-listto identify Log Analytics workspaces - Locate Application Insights instances associated with the resource
- Identify relevant log tables using
azmcp-monitor-table-list
- Use
Execute Diagnostic Queries: Use
azmcp-monitor-log-querywith targeted KQL queries based on resource type:General Error Analysis:
// Recent errors and exceptions union isfuzzy=true AzureDiagnostics, AppServiceHTTPLogs, AppServiceAppLogs, AzureActivity | where TimeGenerated > ago(24h) | where Level == "Error" or ResultType != "Success" | summarize ErrorCount=count() by Resource, ResultType, bin(TimeGenerated, 1h) | order by TimeGenerated descPerformance Analysis:
// Performance degradation patterns Perf | where TimeGenerated > ago(7d) | where ObjectName == "Processor" and CounterName == "% Processor Time" | summarize avg(CounterValue) by Computer, bin(TimeGenerated, 1h) | where avg_CounterValue > 80Application-Specific Queries:
…
常见问题
什么是“日志”和“遥测数据”?
日志是对已发生事件的记录。遥测数据是收集到的关于资源性能和使用情况的数据。
什么是“Azure 资源”?
它是你在微软 Azure 云中使用的任何服务,比如虚拟机、数据库或网站。
“修复计划”是什么意思?
这是一份分步计划,列出了解决 Azure 资源所发现问题的推荐操作。
详情
作者的原始描述
Analyze Azure resource health, diagnose issues from logs and telemetry, and create a remediation plan for identified problems.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7084
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。