Azure Diagnostics
AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE
This document is the official source for debugging and troubleshooting Azure production issues. Follow these instructions to diagnose and resolve common Azure service problems systematically.
Triggers
Activate this skill when user wants to:
- Debug or troubleshoot production issues
- Diagnose errors in Azure services
- Analyze application logs or metrics
- Fix image pull, cold start, or health probe issues
- Investigate why Azure resources are failing
- Find root cause of application errors
- Troubleshoot Azure Function Apps (invocation failures, timeouts, binding errors)
- Find the App Insights or Log Analytics workspace linked to a Function App
- Troubleshoot AKS clusters, nodes, pods, ingress, or Kubernetes networking issues
Rules
- Start with systematic diagnosis flow
- Use AppLens (MCP) for AI-powered diagnostics when available
- Check resource health before deep-diving into logs
- Select appropriate troubleshooting guide based on service type
- Document findings and attempted remediation steps
- Route AKS incidents to the dedicated AKS troubleshooting document
Quick Diagnosis Flow
- Identify symptoms - What's failing?
- Check resource health - Is Azure healthy?
- Review logs - What do logs show?
- Analyze metrics - Performance patterns?
- Investigate recent changes - What changed?
Troubleshooting Guides by Service
| Service |
Common Issues |
Reference |
| Container Apps |
Image pull failures, cold starts, health probes, port mismatches |
container-apps/ |
| Function Apps |
App details, invocation failures, timeouts, binding errors, cold starts, missing app settings |
functions/ |
| AKS |
Cluster access, nodes, kube-system, scheduling, crash loops, ingress, DNS, upgrades |
AKS Troubleshooting |
Routing
- Keep Container Apps and Function Apps diagnostics in this parent skill.
- Route active AKS incidents, AKS-specific intake, evidence gathering, and remediation guidance to AKS Troubleshooting.
Quick Reference
Common Diagnostic Commands
# Check resource health
az resource show --ids RESOURCE_ID
# View activity log
az monitor activity-log list -g RG --max-events 20
# Container Apps logs
az containerapp logs show --name APP -g RG --follow
# Function App logs (query App Insights traces)
az monitor app-insights query --apps APP-INSIGHTS -g RG \
--analytics-query "traces | where timestamp > ago(1h) | order by timestamp desc | take 50"
AppLens (MCP Tools)
For AI-powered diagnostics, use:
mcp_azure_mcp_applens
intent: "diagnose issues with <resource-name>"
command: "diagnose"
parameters:
resourceId: "<resource-id>"
Provides:
- Automated issue detection
- Root cause analysis
- Remediation recommendations
Azure Monitor (MCP Tools)
For querying logs and metrics:
mcp_azure_mcp_monitor
intent: "query logs for <resource-name>"
command: "logs_query"
parameters:
workspaceId: "<workspace-id>"
query: "<KQL-query>"
See kql-queries.md for common diagnostic queries.
Check Azure Resource Health
Using MCP
mcp_azure_mcp_resourcehealth
intent: "check health status of <resource-name>"
command: "get"
parameters:
resourceId: "<resource-id>"
Using CLI
# Check specific resource health
az resource show --ids RESOURCE_ID
# Check recent activity
az monitor activity-log list -g RG --max-events 20
References
- KQL Query Library
- Azure Resource Graph Queries
- Function Apps Troubleshooting
When to Use
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage.
Covers: Triggers, Quick Diagnosis Flow, Troubleshooting Guides by Service, Routing, Common Diagnostic Commands.
1---2name: azure-diagnostics3description: 'Debug Azure production issues on Azure using AppLens, Azure Monitor,4 resource health, and safe triage. WHEN: debug production issues, troubleshoot container5 apps, troubleshoot functions, troubleshoot AKS, kubectl cannot connect, kube-system/CoreDNS6 failures, pod pending, crashloop, node not ready...'7license: MIT8metadata:9 source: https://skillmd.com/skills/jantoniofc/azure-diagnostics10 author: Microsoft11 version: 1.0.412risk: safe13source: community14---1516# Azure Diagnostics1718> **AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE**19>20> This document is the **official source** for debugging and troubleshooting Azure production issues. Follow these instructions to diagnose and resolve common Azure service problems systematically.2122## Triggers2324Activate this skill when user wants to:25- Debug or troubleshoot production issues26- Diagnose errors in Azure services27- Analyze application logs or metrics28- Fix image pull, cold start, or health probe issues29- Investigate why Azure resources are failing30- Find root cause of application errors31- Troubleshoot Azure Function Apps (invocation failures, timeouts, binding errors)32- Find the App Insights or Log Analytics workspace linked to a Function App33- Troubleshoot AKS clusters, nodes, pods, ingress, or Kubernetes networking issues3435## Rules36371. Start with systematic diagnosis flow382. Use AppLens (MCP) for AI-powered diagnostics when available393. Check resource health before deep-diving into logs404. Select appropriate troubleshooting guide based on service type415. Document findings and attempted remediation steps426. Route AKS incidents to the dedicated AKS troubleshooting document4344---4546## Quick Diagnosis Flow47481. **Identify symptoms** - What's failing?492. **Check resource health** - Is Azure healthy?503. **Review logs** - What do logs show?514. **Analyze metrics** - Performance patterns?525. **Investigate recent changes** - What changed?5354---5556## Troubleshooting Guides by Service5758| Service | Common Issues | Reference |59|---------|---------------|-----------|60| **Container Apps** | Image pull failures, cold starts, health probes, port mismatches | [container-apps/](references/container-apps/README.md) |61| **Function Apps** | App details, invocation failures, timeouts, binding errors, cold starts, missing app settings | [functions/](references/functions/README.md) |62| **AKS** | Cluster access, nodes, `kube-system`, scheduling, crash loops, ingress, DNS, upgrades | [AKS Troubleshooting](aks-troubleshooting/aks-troubleshooting.md) |6364---6566## Routing6768- Keep Container Apps and Function Apps diagnostics in this parent skill.69- Route active AKS incidents, AKS-specific intake, evidence gathering, and remediation guidance to [AKS Troubleshooting](aks-troubleshooting/aks-troubleshooting.md).7071---7273## Quick Reference7475### Common Diagnostic Commands7677```bash78# Check resource health79az resource show --ids RESOURCE_ID8081# View activity log82az monitor activity-log list -g RG --max-events 208384# Container Apps logs85az containerapp logs show --name APP -g RG --follow8687# Function App logs (query App Insights traces)88az monitor app-insights query --apps APP-INSIGHTS -g RG \89 --analytics-query "traces | where timestamp > ago(1h) | order by timestamp desc | take 50"90```9192### AppLens (MCP Tools)9394For AI-powered diagnostics, use:95```96mcp_azure_mcp_applens97 intent: "diagnose issues with <resource-name>"98 command: "diagnose"99 parameters:100 resourceId: "<resource-id>"101102Provides:103- Automated issue detection104- Root cause analysis105- Remediation recommendations106```107108### Azure Monitor (MCP Tools)109110For querying logs and metrics:111```112mcp_azure_mcp_monitor113 intent: "query logs for <resource-name>"114 command: "logs_query"115 parameters:116 workspaceId: "<workspace-id>"117 query: "<KQL-query>"118```119120See [kql-queries.md](references/kql-queries.md) for common diagnostic queries.121122---123124## Check Azure Resource Health125126### Using MCP127128```129mcp_azure_mcp_resourcehealth130 intent: "check health status of <resource-name>"131 command: "get"132 parameters:133 resourceId: "<resource-id>"134```135136### Using CLI137138```bash139# Check specific resource health140az resource show --ids RESOURCE_ID141142# Check recent activity143az monitor activity-log list -g RG --max-events 20144```145146---147148## References149150- [KQL Query Library](references/kql-queries.md)151- [Azure Resource Graph Queries](references/azure-resource-graph.md)152- [Function Apps Troubleshooting](references/functions/README.md)153154## When to Use155156Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage.157158Covers: Triggers, Quick Diagnosis Flow, Troubleshooting Guides by Service, Routing, Common Diagnostic Commands.