Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Diagnose Azure service issues, query logs, and troubleshoot failures using GitHub Copilot for Azure
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
troubleshooting/aks/references/aks-mcp.md
1# AKS MCP Reference23Use this reference when AKS-aware MCP tools are available in the client.45## Preference Order671. `mcp_azure_mcp_aks`82. The AKS-MCP tools that surface after discovery in the client93. Supporting Azure tools such as `mcp_azure_mcp_applens`, `mcp_azure_mcp_monitor`, and `mcp_azure_mcp_resourcehealth`104. Raw `az aks` and `kubectl` only when required functionality is missing from MCP1112## Happy Path1314After selecting `mcp_azure_mcp_aks`, let the client enumerate the exact AKS-MCP tools it exposes and choose the smallest tool that fits the task.1516Favor the obvious read paths first:1718- cluster and Azure-side inspection19- detector or diagnostic workflows20- monitoring, metrics, or control-plane-log checks21- kubectl-style read operations2223## Authentication And Access2425AKS-MCP is Azure CLI-backed. Expect service principal, workload identity, managed identity, or existing `az login` auth, usually keyed by `AZURE_CLIENT_ID`. If `AZURE_SUBSCRIPTION_ID` is set, expect the server to select that subscription after login.2627Default to `readonly`. Only suggest `readwrite` or `admin` when the current diagnostic step truly requires it.2829## Detector Notes3031For detector-style workflows, use the cluster resource ID, keep the time window within the last 30 days, cap each run to 24 hours, and stay within the supported AKS detector categories.3233## Fallback Rule3435If the client does not expose the AKS-MCP surface needed for a check, then fall back to:3637- `az aks` for Azure-side AKS operations38- raw `kubectl` for Kubernetes-side inspection39