Skip to content

Conversation

@mainred
Copy link
Member

@mainred mainred commented Aug 29, 2025


Test

when both aks-preview and aks-agent extension are added, I can find both commands under az aks, and both subcommands work fine.

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings August 29, 2025 02:43
@azure-client-tools-bot-prd
Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Aug 29, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new aks-agent extension that provides an interactive AI-powered debugging tool for Azure Kubernetes Service (AKS) clusters. The extension enables users to ask natural language questions about their AKS clusters and receive AI-generated responses for troubleshooting.

Key changes:

  • Adds the az aks agent command with support for both interactive and non-interactive modes
  • Integrates with multiple LLM providers (Azure OpenAI, OpenAI, etc.) for AI-powered analysis
  • Provides comprehensive toolsets for AKS cluster debugging and analysis

Reviewed Changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
setup.py Package configuration for the aks-agent extension with dependencies
azext_aks_agent/init.py Extension loader and command registration
azext_aks_agent/commands.py Command definition for aks agent
azext_aks_agent/_params.py Parameter definitions and argument handling
azext_aks_agent/custom.py Main command implementation wrapper
azext_aks_agent/agent/agent.py Core agent functionality and LLM interaction logic
azext_aks_agent/agent/prompt.py AKS-specific context and workflow prompts
azext_aks_agent/agent/telemetry.py Telemetry client for usage tracking
azext_aks_agent/_validators.py Input validation functions for configuration files
azext_aks_agent/_help.py Command help text and usage examples
Test files Comprehensive unit tests for validators and agent functionality
Documentation README and HISTORY files with usage instructions

@github-actions
Copy link

github-actions bot commented Aug 29, 2025

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Aug 29, 2025
@mainred mainred force-pushed the aks-agent-extension branch from ae8fe30 to 6c692bd Compare August 29, 2025 04:35
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Aug 29, 2025
@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mainred
Copy link
Member Author

mainred commented Aug 29, 2025

a bunch of aks-preview tests failed which are untouched in this PR. Merge the main branch onto this PR and see.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mainred
Copy link
Member Author

mainred commented Sep 1, 2025

@yanzhudd Please help take a look, thanks.

@yanzhudd yanzhudd merged commit 4673b36 into Azure:main Sep 1, 2025
25 checks passed
@azclibot
Copy link
Collaborator

azclibot commented Sep 1, 2025

[Release] Update index.json for extension [ aks-agent-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=135637546&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants