julianobarbosa/claude-code-skills/az-aks-agent
Claude Code and agent skill by julianobarbosa/claude-code-skills
- community
Checking that the SKILL.md file is still in the repository.
Azure AKS Agentic CLI - AI-powered troubleshooting and insights tool for Azure Kubernetes Service. Use when diagnosing AKS cluster issues, getting cluster health insights, troubleshooting networking/storage/security problems, or analyzing cluster configuration with natural language queries.
Install
npx vskill@latest install julianobarbosa/claude-code-skills/az-aks-agentSKILL.md
Azure AKS Agent CLI Skill
Overview
The Agentic CLI for Azure Kubernetes Service (AKS) is an AI-powered troubleshooting and insights tool (currently in preview) that brings advanced diagnostics directly to your terminal. It allows you to ask natural language questions about your cluster's health, configuration, and issues without requiring deep Kubernetes expertise or knowledge of complex command syntax.
Primary Command: az aks agent
Quick Reference
Installation
Basic Usage
Workflow Decision Tree
Command Reference
Core Commands
| Command | Description | |
|---|---|---|
az aks agent | Start interactive AI-powered troubleshooting | |
az aks agent-init | Initialize LLM provider configuration | |
az aks agent --help | Show help and available options |
Command Parameters
| Parameter | Description | Default | |
|---|---|---|---|
-g, --resource-group | Resource group name | Required | |
-n, --name | AKS cluster name | Required | |
--api-key | LLM API key | From env or config | |
--config-file | Config file path | ~/.azure/aksAgent.config | |
--max-steps | Max investigation steps | 10 | |
--model | LLM model specification | From config | |
--no-interactive | Run in batch mode | false | |
--show-tool-output | Display tool call outputs | false | |
--refresh-toolsets | Refresh toolsets status | false |
LLM Model Specifications
Configuration
Environment Variables
Config File Structure (~/.azure/aksAgent.config)
Azure OpenAI Requirements
- Deployment name: Must match model name
- Minimum TPM: 1,000,000+ (Tokens Per Minute)
- Minimum context size: 128,000+ tokens
- API Base Format:
https://{endpoint}.openai.azure.com/(NOT AI Foundry URI)
Common Use Cases
Cluster Health Analysis
Pod Troubleshooting
Networking Issues
Storage Troubleshooting
Security Analysis
AKS Events Reference
Viewing Cluster Events
Event Types
| Type | Description | |
|---|---|---|
Normal | Routine operations and expected activities | |
Warning | Potentially problematic situations requiring attention |
Common Event Reasons
| Reason | Description | |
|---|---|---|
FailedScheduling | Pod failed to be scheduled on a node | |
CrashLoopBackOff | Container is in a restart loop | |
Scheduled | Pod successfully assigned to a node | |
Pulled | Container image successfully pulled | |
Created | Container created | |
Started | Container started | |
OOMKilled | Container killed due to out of memory |
Event Fields
| Field | Description | |
|---|---|---|
type | Warning or Normal | |
reason | Short reason code | |
message | Human-readable description | |
namespace | Kubernetes namespace | |
firstSeen | First observation timestamp | |
lastSeen | Most recent observation | |
object | Associated Kubernetes object |
Best Practices
Effective Query Strategies
- Start broad, then narrow
``bash # Start with general health "What's wrong with my cluster?" # Then focus on specific issues "Why are pods in namespace X failing?" ``
- Provide context about symptoms
``bash "Pods are restarting frequently in the production namespace" "Services are experiencing intermittent timeouts" ``
- Ask for specific recommendations
``bash "What changes do you recommend to improve cluster performance?" "How can I fix the networking issues you identified?" ``
- Request historical analysis
``bash "What patterns do you see in recent pod failures?" "Have there been any unusual events in the last 24 hours?" ``
Security Considerations
- Ensure proper RBAC permissions are configured
- Use Azure AD integration for authentication
- Follow principle of least privilege
- Audit command usage through Azure activity logs
- Service account tokens for automation
Integration Tips
- Combine with traditional monitoring: Use alongside Azure Monitor and Container Insights
- Proactive monitoring: Run health checks regularly
- Document findings: Save important diagnostic outputs
- Enable Container Insights: For events beyond 1-hour retention
Troubleshooting the Agent
Installation Issues
Authentication Issues
LLM Connection Issues
Rate Limiting
- Symptom: Slow responses or errors
- Solution: Increase TPM quota in Azure OpenAI deployment
- Minimum recommended: 1,000,000 TPM
Important Notes
- Preview Feature: This is currently in preview with limited warranty coverage
- Not for Production Critical: Not recommended for production-critical decision making
- Event Retention: Kubernetes events only persist for 1 hour by default
- Context Window: Requires 128,000+ token context for optimal performance
- Authentication: Always authenticate with
az loginbefore using
Resources
References
Core References
references/cli-commands.md- Complete CLI command referencereferences/troubleshooting.md- Extended troubleshooting guidereferences/examples.md- Practical usage examples
Diagnostics & Monitoring
references/diagnostics.md- AKS Diagnose and Solve Problems guidereferences/monitoring.md- Comprehensive AKS monitoring guidereferences/control-plane-metrics.md- Control plane metrics (API Server, etcd)
Troubleshooting Guides
references/kubelet-logs.md- Kubelet logs access and analysisreferences/memory-saturation.md- Memory saturation identification and resolutionreferences/node-auto-repair.md- Node auto-repair process and monitoringreferences/api-server-etcd.md- API server and etcd troubleshooting
External Documentation
- AKS Agent Overview
- AKS Agent Installation
- AKS Events
- AKS Diagnostics
- Monitor AKS
- Control Plane Metrics
- Kubelet Logs
- Memory Saturation
- Node Auto-Repair
- API Server/etcd Troubleshooting
- AKS Monitoring Reference
- AKS Agent Troubleshooting
- AKS Agent FAQ
- GitHub Repository
- Example Config
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/az-aks-agent/SKILL.md
Popularity
- Repository stars
- 84
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/julianobarbosa/claude-code-skills/az-aks-agent)