|
3960 | 3960 | short-summary: Run AI assistant to analyze and troubleshoot Kubernetes clusters. |
3961 | 3961 | long-summary: |- |
3962 | 3962 | This command allows you to ask questions about your Azure Kubernetes cluster and get answers using AI models. |
| 3963 | + By default, the agent uses enhanced MCP (Model Context Protocol) integration for improved capabilities. |
| 3964 | + Use --no-aks-mcp to disable MCP and use traditional built-in toolsets. |
| 3965 | +
|
| 3966 | + The agent uses smart refresh to optimize performance: |
| 3967 | + • First run or mode changes: Toolsets are refreshed automatically |
| 3968 | + • Subsequent runs in same mode: Uses cached toolsets for faster startup |
| 3969 | + • If expected capabilities are missing: Use --refresh-toolsets to force refresh |
| 3970 | +
|
3963 | 3971 | Environment variables must be set to use the AI model, please refer to https://docs.litellm.ai/docs/providers to learn more about supported AI providers and models and required environment variables. |
3964 | 3972 | parameters: |
3965 | 3973 | - name: --name -n |
|
3991 | 3999 | short-summary: Show the output of each tool that was called during the analysis. |
3992 | 4000 | - name: --refresh-toolsets |
3993 | 4001 | type: bool |
3994 | | - short-summary: Refresh the toolsets status. |
| 4002 | + short-summary: Force refresh of toolsets even when using cached configuration. |
| 4003 | + long-summary: |- |
| 4004 | + By default, the agent uses smart refresh to optimize performance. This flag forces |
| 4005 | + a complete toolset refresh, which is useful if: |
| 4006 | + • Expected tools or capabilities are missing |
| 4007 | + • You've updated your environment or configuration |
| 4008 | + • Troubleshooting toolset-related issues |
| 4009 | + Note: This may increase startup time but ensures all available tools are loaded. |
| 4010 | + - name: --no-aks-mcp |
| 4011 | + type: bool |
| 4012 | + short-summary: Disable AKS MCP integration and use traditional built-in toolsets. |
| 4013 | + is_preview: true |
| 4014 | + - name: --status |
| 4015 | + type: bool |
| 4016 | + short-summary: Show AKS agent configuration and status. |
| 4017 | + long-summary: |- |
| 4018 | + Display information about AKS agent configuration, MCP binary status, server health, |
| 4019 | + and active toolsets. This command helps diagnose agent setup and operational status. |
| 4020 | +
|
| 4021 | + The status output shows: |
| 4022 | + • Current operation mode (MCP enhanced vs traditional) |
| 4023 | + • MCP binary availability and version information |
| 4024 | + • MCP server status and health (when applicable) |
| 4025 | + • Component-specific error messages and recommendations |
| 4026 | +
|
| 4027 | + Use this option to: |
| 4028 | + • Verify the agent is properly configured |
| 4029 | + • Troubleshoot MCP integration issues |
| 4030 | + • Check if enhanced capabilities are available |
| 4031 | + • Get recommendations for resolving configuration problems |
3995 | 4032 |
|
3996 | 4033 | examples: |
3997 | | - - name: Ask about pod issues in the cluster with Azure OpenAI |
| 4034 | + - name: Ask about pod issues in the cluster with Azure OpenAI (MCP mode - default) |
3998 | 4035 | text: |- |
3999 | 4036 | export AZURE_API_BASE="https://my-azureopenai-service.openai.azure.com/" |
4000 | 4037 | export AZURE_API_VERSION="2025-01-01-preview" |
4001 | 4038 | export AZURE_API_KEY="sk-xxx" |
4002 | 4039 | az aks agent "Why are my pods not starting?" --name MyManagedCluster --resource-group MyResourceGroup --model azure/my-gpt4.1-deployment |
4003 | | - - name: Ask about pod issues in the cluster with OpenAI |
| 4040 | + - name: Ask about pod issues using traditional toolsets (no MCP) |
| 4041 | + text: |- |
| 4042 | + export AZURE_API_BASE="https://my-azureopenai-service.openai.azure.com/" |
| 4043 | + export AZURE_API_VERSION="2025-01-01-preview" |
| 4044 | + export AZURE_API_KEY="sk-xxx" |
| 4045 | + az aks agent "Why are my pods not starting?" --name MyManagedCluster --resource-group MyResourceGroup --model azure/my-gpt4.1-deployment --no-aks-mcp |
| 4046 | + - name: Ask about pod issues in the cluster with OpenAI (MCP mode - default) |
4004 | 4047 | text: |- |
4005 | 4048 | export OPENAI_API_KEY="sk-xxx" |
4006 | 4049 | az aks agent "Why are my pods not starting?" --name MyManagedCluster --resource-group MyResourceGroup --model gpt-4o |
4007 | 4050 | - name: Run in interactive mode without a question |
4008 | 4051 | text: az aks agent "Check the pod status in my cluster" --name MyManagedCluster --resource-group MyResourceGroup --model azure/my-gpt4.1-deployment --api-key "sk-xxx" |
4009 | | - - name: Run in non-interactive batch mode |
| 4052 | + - name: Run in non-interactive batch mode (traditional toolsets) |
| 4053 | + text: az aks agent "Diagnose networking issues" --no-interactive --max-steps 15 --model azure/my-gpt4.1-deployment --no-aks-mcp |
| 4054 | + - name: Run in non-interactive batch mode (MCP mode - default) |
4010 | 4055 | text: az aks agent "Diagnose networking issues" --no-interactive --max-steps 15 --model azure/my-gpt4.1-deployment |
4011 | 4056 | - name: Show detailed tool output during analysis |
4012 | 4057 | text: az aks agent "Why is my service workload unavailable in namespace workload-ns?" --show-tool-output --model azure/my-gpt4.1-deployment |
|
4016 | 4061 | text: az aks agent "What is the status of my cluster?" --no-echo-request --model azure/my-gpt4.1-deployment |
4017 | 4062 | - name: Refresh toolsets to get the latest available tools |
4018 | 4063 | text: az aks agent "What is the status of my cluster?" --refresh-toolsets --model azure/my-gpt4.1-deployment |
| 4064 | + - name: Troubleshoot missing capabilities by forcing toolset refresh |
| 4065 | + text: |- |
| 4066 | + # If the agent seems to be missing expected capabilities, force a refresh: |
| 4067 | + az aks agent "Debug my networking issues" --refresh-toolsets --show-tool-output --model azure/my-gpt4.1-deployment |
| 4068 | + - name: Show basic agent status |
| 4069 | + text: az aks agent --status |
| 4070 | + - name: Check if MCP integration is working |
| 4071 | + text: |- |
| 4072 | + # This will show if the MCP binary is downloaded and server is healthy |
| 4073 | + az aks agent --status |
| 4074 | + - name: Troubleshoot agent setup issues |
| 4075 | + text: |- |
| 4076 | + # Use status output to identify configuration problems |
| 4077 | + az aks agent --status |
| 4078 | + # Follow the recommendations shown in the output |
4019 | 4079 | - name: Run agent with config file |
4020 | 4080 | text: | |
4021 | 4081 | az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml |
|
0 commit comments