/azure-cloud-development:azure-resource-health-diagnosefrom azure-cloud-development
Diagnoses Azure resource health issues by querying Resource Health, Log Analytics, and Application Insights telemetry, then produces a prioritized remediation plan with Azure CLI commands, validation, and rollback steps.
Ships in azure-cloud-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this workflow to identify an Azure resource, assess its current health, query logs and telemetry, classify root causes, and return a remediation plan with validation and rollback steps.
azmcp-subscription-list, azmcp-monitor-workspace-list, azmcp-monitor-table-list, and azmcp-monitor-log-query over direct Azure CLI when they are available.az resource list --name <resource-name> only as a fallback for discovery.| Resource type | Primary checks | Useful signals |
|---|---|---|
| Web Apps / Function Apps | Availability, HTTP response codes, response times, recent deployments | Application logs, AppServiceHTTPLogs, AppServiceAppLogs, dependency tracking, execution success rate, duration, error frequency |
| Virtual Machines | Provisioning state, boot diagnostics, guest OS metrics, network connectivity | CPU, memory, disk, system logs, performance counters |
| Cosmos DB | Request metrics, throttling, partition statistics | RU consumption, 429s, latency, hot partitions |
| Storage Accounts | Availability, request success rate, latency | Access logs, performance metrics, capacity, authorization failures |
| SQL Database | Connection success, query performance, deadlocks | SQLSecurityAuditEvents, DTU/vCore pressure, blocking, action_name_s CONNECTION_FAILED |
| Application Insights | Application telemetry, exceptions, dependencies | Failed requests, exception trends, dependency failures |
| Key Vault | Access logs, certificate status, secret usage | Authentication failures, throttling, certificate expiration |
| Service Bus | Message metrics, throughput, dead letters | Dead letter queues, lock loss, send/receive failures |
Run azmcp-monitor-log-query with queries adapted to the detected tables and resource type.
// 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 desc
// 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 > 80
// Application Insights - Failed requests
requests
| where timestamp > ago(24h)
| where success == false
| summarize FailureCount=count() by resultCode, bin(timestamp, 1h)
| order by timestamp desc
// Database - Connection failures
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.SQL"
| where Category == "SQLSecurityAuditEvents"
| where action_name_s == "CONNECTION_FAILED"
| summarize ConnectionFailures=count() by bin(TimeGenerated, 1h)
Correlate recurring errors with deployment times, configuration changes, dependency failures, external service incidents, and performance trends.
| Severity | Definition | Response |
|---|---|---|
| Critical | Service unavailable, data loss, or security breach | Immediate restoration, workaround, escalation, and rollback plan. |
| High | Performance degradation, intermittent failures, or high error rates | Short-term fix, scaling, configuration correction, or application patch. |
| Medium | Warnings, suboptimal configuration, or minor performance issues | Planned remediation and monitoring improvement. |
| Low | Informational alerts or optimization opportunities | Backlog item or preventive recommendation. |
| Root cause category | Examples to test |
|---|---|
| Configuration Issues | Incorrect settings, missing dependencies, invalid connection strings, disabled diagnostic settings. |
| Resource Constraints | CPU, memory, disk, RU, connection, or throughput limits and throttling. |
| Network Issues | DNS resolution, firewall rules, private endpoint, NSG, route, or connectivity problems. |
| Application Issues | Code bugs, memory leaks, inefficient queries, dependency exceptions. |
| External Dependencies | Third-party service failures, API limits, regional outages. |
| Security Issues | Authentication failures, expired certificates, missing roles, denied access. |
A complete remediation plan includes Immediate Actions for Critical issues, Short-term Fixes for High and Medium issues, Long-term Improvements for all recurring risks, implementation steps with specific Azure CLI commands, validation procedures, rollback plans, and monitoring to verify resolution.
| Symptom | Likely cause | Resolution |
|---|---|---|
| Resource Not Found | Wrong name, subscription, or resource group | Ask for scope or search with azmcp-subscription-list and az resource list --name <resource-name>. |
| Authentication Issues | Azure session missing or expired | Guide the user through Azure authentication setup. |
| Insufficient Permissions | RBAC role lacks read, metrics, or log access | List required RBAC roles for resource and monitoring access. |
| No Logs Available | Diagnostic settings are disabled or data has not arrived | Suggest enabling diagnostic settings and waiting for ingestion. |
| Query Timeouts | Time window or table union is too large | Break analysis into smaller time windows and resource-specific tables. |
| Service-Specific Issues | Logs unavailable for the service | Provide a generic health assessment and state limitations. |
Keep these Azure triage phrases intact when matching incidents and reports: Web Apps/Function Apps, azmcp-*, logs/telemetry, group/subscription, subscription/resource, name/location, Healthy/Warning/Critical, High/Medium, High/Medium/Low, Performance/reliability, performance/reliability, CPU/Memory/Storage, CPU/memory/disk, and affected users/systems.
# Azure Resource Health Report: <Resource Name>
**Generated**: <timestamp>
**Resource**: <full resource ID>
**Type**: <resource provider/type>
**Location**: <region>
**Overall Health**: Healthy | Warning | Critical | Unknown
## Executive Summary
<brief health status and key findings>
## Health Metrics
- **Availability**: <percent over time window>
- **Performance**: <average response time/throughput>
- **Error Rate**: <percent over time window>
- **Resource Utilization**: <CPU/memory/storage/RU values>
## Issues Identified
| Severity | Issue | Evidence | Root Cause | Impact |
| --- | --- | --- | --- | --- |
| Critical | <issue> | <KQL/metric/resource evidence> | <analysis> | <business impact> |
## Remediation Plan
### Phase 1: Immediate Actions (0-2 hours)
- `<Azure CLI command>` — <purpose>
- Rollback: `<rollback command or procedure>`
### Phase 2: Short-term Fixes (2-24 hours)
- `<Azure CLI command>` — <purpose>
- Validation: <logs, metrics, or functional test>
### Phase 3: Long-term Improvements (1-4 weeks)
- <architectural or preventive measure>
## Monitoring Recommendations
- **Alerts to Configure**: <recommended alerts>
- **Dashboards to Create**: <dashboard suggestions>
- **Regular Health Checks**: <frequency and scope>
## Validation Steps
- [ ] Verify issue resolution through logs.
- [ ] Confirm performance improvements.
- [ ] Test application functionality.
- [ ] Update monitoring and alerting.
- [ ] Document lessons learned.
## Prevention Measures
- <recommendation>
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/az-cost-optimizeAnalyze Azure IaC files and deployed Azure resources for evidence-based cost optimization, validate current costs, calculate priority scores, and draft GitHub issues. Use when asked to "azure cost optimize", "reduce Azure spend", "find Azure cost savings", "right-size Azure resources", or "create cost optimization issues"./azure-cliAzure CLI operations run az commands for cloud resource discovery, subscription context, identity, AKS, ACR, Key Vault, RBAC, managed identity, and federated credential workflows. Use this skill when working with az login, az account, az aks, az acr, az keyvault, resource group checks, or Azure day-2 operations./azure-computeRoute Azure virtual machine and scale set work, including size and image selection, pricing comparison, autoscale and orchestration modes, capacity reservation groups, and Essential Machine Management. Use when the user asks to create, provision, deploy, or spin up a VM, recommend a VM size or family, compare VM pricing, work with VMSS, scale sets, autoscale, burstable or GPU sizes, plan HPC, machine learning, or dev/test workloads, estimate compute cost, or reserve and guarantee capacity./azure-enterprise-infra-plannerArchitect and provision enterprise Azure infrastructure from workload descriptions for cloud architects and platform engineers, covering networking, identity, security, compliance, and multi-resource topologies with Well-Architected alignment, and generating Bicep or Terraform directly without azd. Use when the user asks to plan Azure infrastructure, architect a landing zone, design a hub-spoke network, plan a multi-region disaster recovery topology, set up virtual networks, firewalls, and private endpoints, run a subscription-scope Bicep deployment, or configure Azure Backup for VM workloads./azure-infrastructureAzure infrastructure patterns guide landing-zone, networking, identity, naming, tagging, and private connectivity decisions. Use this skill when designing hub-spoke networks, private endpoint patterns, Workload Identity, naming conventions, tag strategies, AKS architecture, Key Vault access, or secure PaaS topology./azure-pricingFetch live Azure Retail Prices API data and estimate Azure service, SKU, region, reservation, savings plan, spot, and Copilot Studio credit costs. Use when the user asks about Azure pricing, Azure costs, Azure billing, workload estimates, SKU comparison, Copilot Credits, Copilot Studio pricing, or agent usage estimation.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin azure-cloud-developmentOther plugins' skills for the same job