azure-diagnostics
Debug Azure 生產環境問題
此技能可透過結構化除錯工作流程、診斷命令和 Container Apps 的 KQL 查詢,協助開發人員診斷和排除 Azure 生產環境問題。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "azure-diagnostics". My Container App shows status 'Running' but returns 502 errors
النتيجة المتوقعة:
- Check the ingress targetPort configuration matches your app's listening port
- Verify the health endpoint returns HTTP 200
- Review container startup logs for errors
- Ensure Dockerfile EXPOSE matches ingress configuration
استخدام "azure-diagnostics". Write a KQL query to find failed requests
النتيجة المتوقعة:
- 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)
درجة الجودة
ماذا يمكنك بناءه
Debug 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
بنية الملفات