SkillsReviewed · microsoft

Microsoft Azure Diagnostics

Azure Diagnostics is Microsoft's troubleshooting skill for AI assistants used by Azure developers and operators, but some automatic checks can miss failures. It combines service playbooks, Kusto Query Language queries and Bash and PowerShell collection scripts. Advanced Azure Kubernetes Service tracing creates privileged debug pods and needs separate approval.

Researched 13 Nov 2026

In short.

Azure Diagnostics is Microsoft's troubleshooting skill for AI assistants used by Azure developers and operators, but some automatic checks can miss failures. Version 1.2.14 covers application hosting, Functions, Kubernetes, VM connectivity and messaging through service guides, queries and collection scripts. It supports analysis from supplied evidence without live access. Concrete limitations include pod discovery that misses unhealthy containers in Running pods, a PowerShell scan that can confuse collection failure with health, and telemetry discovery based on resource-group proximity. Privileged tracing and remediation need operator control. Nothing was executed; runtime correctness and host compatibility are unassessed, and total operating cost is unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the supplied complete azure-diagnostics folder at commit 40a30c5df5b79b5849d3293461c6a3581106133e, including SKILL.md, nested references, troubleshooting guides and scripts, together with the repository and plugin MIT notices. External linked pages, other repository folders, parent plugin configuration and the optional aks-skills implementation are excluded. No code or integrations were executed. Installation success, runtime correctness, remediation outcomes, host compatibility, performance and operating cost remain unassessed or unknown.

The overview

Identity

Azure Diagnostics, named azure-diagnostics in its metadata, is a Microsoft-authored instruction skill within the azure-skills repository. Its metadata declares version 1.2.14. It supplies instructions, nested reference guides and scripts that an AI assistant can use to organize Azure incident investigation.

The original resource is [https://github.com/microsoft/azure-skills/tree/main/.github/plugins/azure-skills/skills/azure-diagnostics]. It depends on the assistant host and available Azure tools for execution and interpretation.

Assessment

Its strongest practical feature is repeatable evidence collection. App Service, Container Apps and AKS have paired Bash and PowerShell scripts that gather related information into labeled sections. The scripts leave interpretation to the caller, making the boundary between collected facts and a proposed cause explicit.

It is a useful candidate for supervised incident triage, especially when an assistant otherwise assembles diagnostic commands individually. Unattended remediation is harder to justify: several discovery paths have identifiable limitations, and documented approval requirements are not enforced by the tracing scripts. Diagnostic accuracy, resolution rates and time savings are unknown.

Users

The clearest audience is developers, site reliability engineers and Azure operators investigating production symptoms. Application teams get paths for deployment failures, slow responses, crashes, missing telemetry and message-processing problems. Infrastructure teams get Kubernetes and VM connectivity guidance.

Beginners can use the symptom tables to organize questions and supplied logs. Live production investigation still benefits from an operator who understands Azure identities, resource identifiers, network rules and the impact of proposed changes. Experienced developers get concrete commands, query patterns and language-specific messaging references.

Capabilities

Application guidance covers App Service CPU, memory, deployment, startup, response-time and TLS problems, plus Container Apps image pulls, cold starts, ingress ports and health probes. Functions references cover telemetry discovery, HTTP and scheduled triggers, queues, blobs, Service Bus, Cosmos DB and Durable Functions replay, timers and task hubs.

AKS coverage extends from pod crashes and scheduling to node pressure, networking, ingress, network policy, spot and zone incidents, and upgrade blockers. VM references separate Windows RDP and Linux SSH symptoms, Azure networking, guest firewalls, credentials and VM-agent failures.

Messaging references cover Event Hubs and Service Bus in Python, Java, JavaScript and .NET. They discuss authentication, retries, connection reuse, checkpointing, message locks and dead-letter investigation. Shared Kusto Query Language examples address errors, failed requests, slow requests and dependency failures.

Using it

Requirements

Evidence-only use needs supplied logs, metrics or an incident timeline and does not require live Azure access. Live collection needs appropriate authorization and a host that exposes the relevant Azure MCP tools or permits shell execution. A complete supported-host matrix, minimum tool versions and permission matrix are not supplied.

CLI paths use Azure CLI; Kubernetes inspection uses kubectl with the correct cluster context. Resource Graph queries require the resource-graph CLI extension. Telemetry queries require the relevant Application Insights or Log Analytics setup and available tables. Pod usage collection depends on working Kubernetes metrics.

The documented Azure MCP AKS area provides cluster and node-pool metadata. Kubernetes commands still require kubectl. Authentication is host-specific, and the references distinguish this Azure MCP integration from the separate Azure/aks-mcp server.

Mechanism

The assistant classifies the symptom, selects a service guide and correlates evidence with possible causes. The general sequence considers symptoms, resource health, logs, metrics and recent changes. AKS has a useful exception: a clearly identified failing pod starts with pod state, events and current or previous logs, while broad cluster incidents start with Azure-side evidence.

Collection scripts wrap existing commands. The App Service collector prints configuration, deployment entries, setting names and domains. The Container Apps collector prints revisions, registry and ingress configuration, and recent logs. AKS scripts gather cluster state or a named pod's state, events, logs and resource information. AppLens-assisted diagnosis and Azure Monitor queries are documented integrations whose actual behavior was not assessed.

Deeper AKS tracing uses run-ig to assemble an Inspektor Gadget invocation through kubectl debug --profile=sysadmin. The scripts pin Inspektor Gadget to v0.51.0 and normally use five-second snapshot or top timeouts and thirty-second trace, profile or packet-capture timeouts.

Setup

Keep the complete skill folder and its relative directory structure together so instructions can reach their scripts and references. These files do not establish a complete host-specific installation procedure. Loading the skill into a particular assistant and enabling Azure tools require that host's supported mechanism.

For live CLI collection, configure Azure authentication and identify the target subscription and resource. For AKS, verify kubectl's cluster separately. Choose the Bash or PowerShell script for the environment. The optional aks-skills handoff requires consent before installation, and the baseline guidance remains usable when that add-on is unavailable or declined.

Example

An illustrative collection command from the skill root is bash ./scripts/pod-evidence.sh checkout-api-abc123 -n payments --tail 50. The pod and namespace names are examples. The script is intended to print readiness and restart status, container exit information, events, current and previous logs, and resource requests and limits alongside live usage.

An assistant can then explain which observations support a hypothesis and which checks remain missing. If live access is prohibited, the same investigation can use operator-supplied evidence instead. This command was not executed, and no example diagnosis or successful outcome is established.

Assessment & evidence

Limitations

Both pod-evidence automatic discovery modes exclude pods whose phase is Running. They can therefore miss Running pods with unready or crashing containers, despite broader documentation describing discovery of unhealthy pods. The baseline scripts explicitly account for container readiness and restart counts, showing that the two discovery approaches have different coverage.

The PowerShell pod discovery path suppresses kubectl errors and does not check the scan's exit status before treating an empty result as healthy. A failed scan can consequently produce a no-unhealthy-pods message and exit successfully. The Bash implementation explicitly checks scan failure, so the two implementations differ.

The Functions Resource Graph query associates a Function App with Application Insights resources by shared resource group. That identifies candidates rather than proving the actual telemetry destination and can produce multiple matches. The guide acknowledges cross-resource-group limitations and supplies a connection-setting fallback.

The AKS scripts' subscription option scopes Azure CLI calls but does not change kubectl's context. Mixed contexts can combine Azure metadata from one target with Kubernetes evidence from another. The baseline script also lacks an explicit Resource Health query, so its completion alone does not establish platform health.

Inspektor Gadget tracing creates a privileged debug pod, and its reference says that pod persists after tracing. Approval is a documented requirement rather than a prompt enforced by run-ig. Dry-run mode can still query a pod to resolve its node. Both tracing wrappers print a completed-sounding message before invoking the command, so that message is not proof of successful tracing.

Messaging references contain internal discrepancies. The .NET Event Hubs and Service Bus pages name AMQP ports 5761 and 5762, while the service guide and probe scripts use 5671 and 5672. The service guide also gives a universal 1 MB batch restriction while language references describe limits derived from service-advertised message size. These discrepancies need resolution before operational use.

Connectivity probes establish only the checks they perform. An open TCP port does not establish successful authentication or message processing, and a BLOCKED label does not isolate a particular firewall or network cause. The Bash probe deliberately treats connectivity failure as a diagnostic result rather than a failing process exit.

Reasoning

The likely benefit comes from collecting complementary evidence consistently: container state explains how a process ended, events describe scheduling or platform decisions, and previous logs preserve information from a crashed instance. This can reduce gaps caused by collecting only the currently visible logs. That benefit is inferred from the script structure; no measured improvement is supplied.

Several guides also make remediation conditions explicit. VM extension-backed operations require checks of power, provisioning, agent and extension state. Queue replay guidance asks for downstream-state review and one representative replay before bulk processing. Durable Functions guidance distinguishes winning a timeout race from actually stopping the losing work. These are useful decision boundaries, but successful enforcement is unassessed.

Alternatives

The included Azure CLI, kubectl and KQL examples support a manual investigation without loading the skill. Azure Monitor, Resource Health and AppLens are documented tool options. The tradeoff is choosing and interpreting the commands directly; comparative speed and accuracy are unknown.

For focused AKS operations, the skill describes the optional aks-skills add-on while retaining baseline diagnostics. It also links to Microsoft Learn and language-specific Azure SDK troubleshooting guides. The add-on implementation and external linked pages are outside this resource's assessed scope, so their quality and compatibility are unknown.

Evidence

The available evidence consists of the instruction file, its in-folder service references and troubleshooting guides, six pairs of Bash and PowerShell scripts, and repository and plugin MIT notices. These establish documented intent and visible implementation. They provide no executed incident results, benchmark results or demonstrated host compatibility.

The version-specific instruction file is [https://raw.githubusercontent.com/microsoft/azure-skills/40a30c5df5b79b5849d3293461c6a3581106133e/.github/plugins/azure-skills/skills/azure-diagnostics/SKILL.md]. Script behavior described here comes from the supplied source text. No scripts, Azure commands or MCP integrations were executed.

Access & freshness

Costs

No price schedule or total operating-cost estimate is supplied. The MIT licence establishes reuse rights, not a zero-cost deployment. Assistant or model charges, Azure telemetry charges and resource consumption during diagnostics are unknown.

Some remediation examples increase capacity, including a larger App Service plan, a nonzero Container Apps minimum replica count and AKS upgrade surge capacity. Their financial effects are not quantified. No execution time, token usage or measured cost is available.

Rights

The skill declares MIT licensing, supported by matching repository and plugin notices naming Microsoft Corporation and copyright 2025. The licence permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions. It supplies the software without warranty.

Those notices support redistribution of the selected skill files with the notices retained. They do not establish the terms of separately obtained Azure services, assistant hosts, SDKs or container images.

Freshness

The supplied snapshot was captured on 13 November 2026 at 06:02 UTC and identifies source commit 40a30c5df5b79b5849d3293461c6a3581106133e. The skill declares version 1.2.14, and the tracing scripts pin Inspektor Gadget v0.51.0.

The capture time does not establish the commit date, release date or support status. Current main-branch content, later corrections and compatibility with current Azure CLI, MCP, SDK and platform behavior are unknown. References that link to moving main branches or external documentation may differ from this snapshot.

Actions

Start with supplied-evidence analysis or supervised read-only collection. Confirm the Azure subscription and kubectl cluster independently. For unhealthy pods, use readiness-aware discovery or explicitly name the affected pod rather than trusting the phase-only automatic scan. Inspect collection errors and exit status before treating an empty result as healthy.

For missing Functions telemetry, verify the actual connection setting and destination rather than relying on a resource-group join. Resolve the messaging port and batch-limit discrepancies against the relevant service and SDK documentation. Review logs and connection-setting output before sharing it with an assistant; a general redaction mechanism is not established.

Keep privileged tracing and resource changes under explicit operator authorization. Preview the tracing command, account for pod lookups during dry-run, and plan removal of the persistent debug pod. Evaluate host compatibility and diagnostic correctness in a controlled environment before relying on the skill during an incident; those outcomes remain unassessed.

Evidence for this report

.github/plugins/azure-skills/LICENSEnotice · checked 2026-11-13
LICENSEnotice · checked 2026-11-13