azure-diagnostics
调试 Azure 生产问题
此技能通过提供结构化的调试工作流、诊断命令和 Container Apps 的 KQL 查询,帮助开发者诊断和排查 Azure 生产问题。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "azure-diagnostics". 我的 Container App 显示状态为“Running”但返回 502 错误
النتيجة المتوقعة:
- 检查入口 targetPort 配置是否与应用监听的端口匹配
- 验证健康端点返回 HTTP 200
- 查看容器启动日志中的错误
- 确保 Dockerfile EXPOSE 与入口配置一致
استخدام "azure-diagnostics". 编写 KQL 查询以查找失败请求
النتيجة المتوقعة:
- AppRequests
- | where Success == false
- | where TimeGenerated > ago(1h)
- | summarize count() by Name, ResultCode
- | order by count_ desc
التدقيق الأمني
آمنThis skill contains only documentation with example Azure CLI commands and KQL queries. Static scanner flagged 70 instances of 'external_commands' but these are markdown code blocks showing example commands, not executable code. Network findings are documentation URLs. Env access findings reference standard Azure Container Apps environment variables. All high/critical findings are false positives - the skill is safe for publication.
مشكلات حرجة (1)
مشكلات عالية المخاطر (1)
مشكلات متوسطة المخاطر (3)
درجة الجودة
ماذا يمكنك بناءه
调试 Container App 镜像拉取失败
诊断容器镜像从 Azure Container Registry 拉取失败的原因,并获取逐步修复命令
使用 KQL 分析应用日志
查询 Application Insights 以查找近期错误、失败请求和性能缓慢问题
修复冷启动超时问题
通过调整副本设置,识别并解决 Azure Container Apps 中的首次请求缓慢问题
جرّب هذه الموجهات
我的 Azure Container App 无法启动。使用 azure-diagnostics 技能帮助我诊断此问题。
我的 Container App 持续出现镜像拉取错误。如何解决 ACR 认证问题?
帮助我编写 KQL 查询,查找过去一小时内 Application Insights 日志中的错误。
我的容器由于健康探测失败而持续重启。我应该检查什么?
أفضل الممارسات
- 在深入查看详细日志之前,先进行资源健康检查
- 使用系统化诊断流程:症状 -> 健康 -> 日志 -> 指标 -> 变更
- 在可用时利用 AppLens MCP 进行 AI 驱动的根因分析
- 记录所有尝试的补救步骤以供将来参考
تجنب
- 调查容器重启时不要跳过健康检查
- 不要未经检查 HealthResources 就假设 Azure 服务健康
- 不要忽略预配状态失败——这些表示部署问题
الأسئلة المتكررة
此技能实际做什么?
此技能能否修复我的 Azure 问题?
支持哪些 Azure 服务?
我需要安装 Azure CLI 吗?
什么是 AppLens?
如何查询 Azure Resource Graph?
تفاصيل المطور
المؤلف
microsoftالترخيص
MIT
المستودع
https://github.com/microsoft/github-copilot-for-azure/tree/main/plugin/skills/azure-diagnostics/مرجع
main
بنية الملفات