Azure / Azure/agentic-cli-for-aks
aks-agent installation failed
- Dominant language
- No language data
- Stars
- 11
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
I followed the instructions for [Install the agentic CLI for AKS extension](https://learn.microsoft.com/en-gb/azure/aks/agentic-cli-for-aks-install?pivots=client-mode#install-the-agentic-cli-for-aks-extension) (`az extension add --name aks-agent --debug`). It failed.
```
cli.knack.cli: Command arguments: ['extension', 'add', '--name', 'aks-agent', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Using packaged command index for profile 'latest'.
cli.azure.cli.core: Found installed extension 'account' (azext_account).
cli.azure.cli.core: Blending packaged core index with local extension index.
cli.azure.cli.core: Modules found from index for 'extension': ['azure.cli.command_modules.extension']
cli.azure.cli.core: Loading command modules...
cli.azure.cli.core: Loaded command modules in parallel:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: extension 0.008 1 7
cli.azure.cli.core: Total (1) 0.011 1 7
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 1 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : extension add
cli.azure.cli.core: Command table: extension add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/glen.thomas/.azure/commands/2026-06-15.16-39-03.extension_add.88199.log'.
az_command_data_logger: command args: extension add --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x1082dc4a0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x1082dc540>, .add_global_policy_argument at 0x1082dc680>, .add_cache_arguments at 0x1082dc720>, .update_breaking_change_info at 0x1082dc7c0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .parse_ids_arguments at 0x1082dc5e0>]
urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 4810925
cli.azure.cli.core.extension._resolve: No stable version of 'aks-agent' to install. Preview versions allowed.
cli.azure.cli.core.extension._resolve: Candidates ['aks_agent-1.0.0b1-py2.py3-none-any.whl', 'aks_agent-1.0.0b2-py2.py3-none-any.whl', 'aks_agent-1.0.0b3-py2.py3-none-any.whl', 'aks_agent-1.0.0b4-py2.py3-none-any.whl', 'aks_agent-1.0.0b5-py2.py3-none-any.whl', 'aks_agent-1.0.0b6-py2.py3-none-any.whl', 'aks_agent-1.0.0b7-py2.py3-none-any.whl', 'aks_agent-1.0.0b8-py2.py3-none-any.whl', 'aks_agent-1.0.0b9-py2.py3-none-any.whl', 'aks_agent-1.0.0b10-py2.py3-none-any.whl', 'aks_agent-1.0.0b11-py2.py3-none-any.whl', 'aks_agent-1.0.0b12-py2.py3-none-any.whl', 'aks_agent-1.0.0b13-py2.py3-none-any.whl', 'aks_agent-1.0.0b14-py2.py3-none-any.whl', 'aks_agent-1.0.0b15-py2.py3-none-any.whl', 'aks_agent-1.0.0b16-py2.py3-none-any.whl', 'aks_agent-1.0.0b17-py2.py3-none-any.whl', 'aks_agent-1.0.0b18-py2.py3-none-any.whl', 'aks_agent-1.0.0b19-py2.py3-none-any.whl', 'aks_agent-1.0.0b20-py2.py3-none-any.whl', 'aks_agent-1.0.0b21-py2.py3-none-any.whl', 'aks_agent-1.0.0b22-py2.py3-none-any.whl', 'aks_agent-1.0.0b23-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['aks_agent-1.0.0b1-py2.py3-none-any.whl', 'aks_agent-1.0.0b2-py2.py3-none-any.whl', 'aks_agent-1.0.0b3-py2.py3-none-any.whl', 'aks_agent-1.0.0b4-py2.py3-none-any.whl', 'aks_agent-1.0.0b5-py2.py3-none-any.whl', 'aks_agent-1.0.0b6-py2.py3-none-any.whl', 'aks_agent-1.0.0b7-py2.py3-none-any.whl', 'aks_agent-1.0.0b8-py2.py3-none-any.whl', 'aks_agent-1.0.0b9-py2.py3-none-any.whl', 'aks_agent-1.0.0b10-py2.py3-none-any.whl', 'aks_agent-1.0.0b11-py2.py3-none-any.whl', 'aks_agent-1.0.0b12-py2.py3-none-any.whl', 'aks_agent-1.0.0b13-py2.py3-none-any.whl', 'aks_agent-1.0.0b14-py2.py3-none-any.whl', 'aks_agent-1.0.0b15-py2.py3-none-any.whl', 'aks_agent-1.0.0b16-py2.py3-none-any.whl', 'aks_agent-1.0.0b17-py2.py3-none-any.whl', 'aks_agent-1.0.0b18-py2.py3-none-any.whl', 'aks_agent-1.0.0b19-py2.py3-none-any.whl', 'aks_agent-1.0.0b20-py2.py3-none-any.whl', 'aks_agent-1.0.0b21-py2.py3-none-any.whl', 'aks_agent-1.0.0b22-py2.py3-none-any.whl', 'aks_agent-1.0.0b23-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['aks_agent-1.0.0b1-py2.py3-none-any.whl', 'aks_agent-1.0.0b2-py2.py3-none-any.whl', 'aks_agent-1.0.0b3-py2.py3-none-any.whl', 'aks_agent-1.0.0b4-py2.py3-none-any.whl', 'aks_agent-1.0.0b5-py2.py3-none-any.whl', 'aks_agent-1.0.0b6-py2.py3-none-any.whl', 'aks_agent-1.0.0b7-py2.py3-none-any.whl', 'aks_agent-1.0.0b8-py2.py3-none-any.whl', 'aks_agent-1.0.0b9-py2.py3-none-any.whl', 'aks_agent-1.0.0b10-py2.py3-none-any.whl', 'aks_agent-1.0.0b11-py2.py3-none-any.whl', 'aks_agent-1.0.0b12-py2.py3-none-any.whl', 'aks_agent-1.0.0b13-py2.py3-none-any.whl', 'aks_agent-1.0.0b14-py2.py3-none-any.whl', 'aks_agent-1.0.0b15-py2.py3-none-any.whl', 'aks_agent-1.0.0b16-py2.py3-none-any.whl', 'aks_agent-1.0.0b17-py2.py3-none-any.whl', 'aks_agent-1.0.0b18-py2.py3-none-any.whl', 'aks_agent-1.0.0b19-py2.py3-none-any.whl', 'aks_agent-1.0.0b20-py2.py3-none-any.whl', 'aks_agent-1.0.0b21-py2.py3-none-any.whl', 'aks_agent-1.0.0b22-py2.py3-none-any.whl', 'aks_agent-1.0.0b23-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Candidates ['aks_agent-1.0.0b1-py2.py3-none-any.whl', 'aks_agent-1.0.0b2-py2.py3-none-any.whl', 'aks_agent-1.0.0b3-py2.py3-none-any.whl', 'aks_agent-1.0.0b4-py2.py3-none-any.whl', 'aks_agent-1.0.0b5-py2.py3-none-any.whl', 'aks_agent-1.0.0b6-py2.py3-none-any.whl', 'aks_agent-1.0.0b7-py2.py3-none-any.whl', 'aks_agent-1.0.0b8-py2.py3-none-any.whl', 'aks_agent-1.0.0b9-py2.py3-none-any.whl', 'aks_agent-1.0.0b10-py2.py3-none-any.whl', 'aks_agent-1.0.0b11-py2.py3-none-any.whl', 'aks_agent-1.0.0b12-py2.py3-none-any.whl', 'aks_agent-1.0.0b13-py2.py3-none-any.whl', 'aks_agent-1.0.0b14-py2.py3-none-any.whl', 'aks_agent-1.0.0b15-py2.py3-none-any.whl', 'aks_agent-1.0.0b16-py2.py3-none-any.whl', 'aks_agent-1.0.0b17-py2.py3-none-any.whl', 'aks_agent-1.0.0b18-py2.py3-none-any.whl', 'aks_agent-1.0.0b19-py2.py3-none-any.whl', 'aks_agent-1.0.0b20-py2.py3-none-any.whl', 'aks_agent-1.0.0b21-py2.py3-none-any.whl', 'aks_agent-1.0.0b22-py2.py3-none-any.whl', 'aks_agent-1.0.0b23-py2.py3-none-any.whl']
cli.azure.cli.core.extension._resolve: Chosen {'downloadUrl': 'https://azcliprod.blob.core.windows.net/cli-extensions/aks_agent-1.0.0b23-py2.py3-none-any.whl', 'filename': 'aks_agent-1.0.0b23-py2.py3-none-any.whl', 'metadata': {'azext.isPreview': True, 'azext.minCliCoreVersion': '2.76.0', 'classifiers': ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License'], 'extensions': {'python.details': {'contacts': [{'email': 'azpycli@microsoft.com', 'name': 'Microsoft Corporation', 'role': 'author'}], 'document_names': {'description': 'DESCRIPTION.rst'}, 'project_urls': {'Home': 'https://github.com/Azure/azure-cli-extensions/tree/main/src/aks-agent'}}}, 'extras': [], 'generator': 'bdist_wheel (0.30.0)', 'license': 'MIT', 'metadata_version': '2.0', 'name': 'aks-agent', 'run_requires': [{'requires': ['kubernetes (==24.2.0)', 'kubernetes==24.2.0', 'rich (==13.9.4)', 'rich==13.9.4']}], 'summary': 'Provides an interactive AI-powered debugging tool for AKS', 'version': '1.0.0b23'}, 'sha256Digest': '333cb8a66342cc0309c516fe2d028b31a21524c366a5b2c0188f85b67810206d'}
cli.azure.cli.core.extension.operations: Extension source is url? True
cli.azure.cli.core.extension.operations: Downloading https://azcliprod.blob.core.windows.net/cli-extensions/aks_agent-1.0.0b23-py2.py3-none-any.whl to /var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl
urllib3.connectionpool: Starting new HTTPS connection (1): azcliprod.blob.core.windows.net:443
urllib3.connectionpool: https://azcliprod.blob.core.windows.net:443 "GET /cli-extensions/aks_agent-1.0.0b23-py2.py3-none-any.whl HTTP/1.1" 200 279016
cli.azure.cli.core.extension.operations: Downloaded to /var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Validating the extension /var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Checksum of /var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl is OK
cli.azure.cli.core.extension.operations: Validation successful on /var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl
cli.azure.cli.core.extension.operations: Linux distro check: Reading from: /etc/apt/sources.list.d/azure-cli.list
cli.azure.cli.core.extension.operations: Linux distro check: An error occurred while checking linux distribution version source list consistency.
cli.azure.cli.core.extension.operations: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/azure-cli.list'
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', '/Users/glen.thomas/.azure/cliextensions/aks-agent', '/var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl']
cli.azure.cli.core.extension.operations: Running: ['/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/bin/python', '-m', 'pip', 'install', '--target', '/Users/glen.thomas/.azure/cliextensions/aks-agent', '/var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']
cli.azure.cli.core.extension.operations: Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/__main__.py", line 24, in
sys.exit(_main())
~~~~~^^
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/cli/main.py", line 83, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/commands/__init__.py", line 121, in create_command
module = importlib.import_module(module_path)
File "/opt/homebrew/Cellar/python@3.13/3.13.13_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1395, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1023, in exec_module
File "", line 488, in _call_with_frames_removed
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/commands/install.py", line 27, in
import pip._internal.self_outdated_check # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/self_outdated_check.py", line 19, in
from pip._internal.index.package_finder import PackageFinder
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/index/package_finder.py", line 42, in
from pip._internal.req import InstallRequirement
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/req/__init__.py", line 12, in
from .req_install import InstallRequirement
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/req/req_install.py", line 37, in
from pip._internal.operations.install.wheel import install_wheel
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_internal/operations/install/wheel.py", line 33, in
from pip._vendor.distlib.scripts import ScriptMaker
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_vendor/distlib/scripts.py", line 16, in
from .compat import sysconfig, detect_encoding, ZipFile
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/pip/_vendor/distlib/compat.py", line 81, in
import xmlrpc.client as xmlrpclib
File "/opt/homebrew/Cellar/python@3.13/3.13.13_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xmlrpc/client.py", line 138, in
from xml.parsers import expat
File "/opt/homebrew/Cellar/python@3.13/3.13.13_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xml/parsers/expat.py", line 4, in
from pyexpat import *
ImportError: dlopen(/opt/homebrew/Cellar/python@3.13/3.13.13_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/lib-dynload/pyexpat.cpython-313-darwin.so, 0x0002): Symbol not found: _XML_SetAllocTrackerActivationThreshold
Referenced from: <313EFE2B-B8A6-30D0-8805-4227B57A6A54> /opt/homebrew/Cellar/python@3.13/3.13.13_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/lib-dynload/pyexpat.cpython-313-darwin.so
Expected in: <4D62FA9D-D86A-3DD0-98F2-C6D0718849E8> /usr/lib/libexpat.1.dylib
cli.azure.cli.core.extension.operations: Command '['/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/bin/python', '-m', 'pip', 'install', '--target', '/Users/glen.thomas/.azure/cliextensions/aks-agent', '/var/folders/j7/2kd6c9kx5mz5mxztgdcv6__c0000gp/T/tmpd4fwc097/aks_agent-1.0.0b23-py2.py3-none-any.whl', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 1.
cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at /Users/glen.thomas/.azure/cliextensions/aks-agent
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 677, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 820, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 789, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 335, in __call__
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
return add_extension(cli_ctx=cmd.cli_ctx, source=source, extension_name=extension_name, index_url=index_url,
yes=yes, pip_extra_index_urls=pip_extra_index_urls, pip_proxy=pip_proxy, system=system,
version=version, upgrade=upgrade, allow_preview=allow_preview)
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/extension/operations.py", line 344, in add_extension
extension_name = _add_whl_ext(cli_ctx=cmd_cli_ctx, source=source, ext_sha256=ext_sha256,
pip_extra_index_urls=pip_extra_index_urls, pip_proxy=pip_proxy, system=system)
File "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/core/extension/operations.py", line 173, in _add_whl_ext
raise CLIError('An error occurred. Pip failed with status code {}. '
'Use --debug for more information.'.format(pip_status_code))
knack.util.CLIError: An error occurred. Pip failed with status code 1. Use --debug for more information.
cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.
az_command_data_logger: An error occurred. Pip failed with status code 1. Use --debug for more information.
cli.knack.cli: Event: Cli.PostExecute []
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 7.835 seconds (init: 0.729, invoke: 7.106)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4266 in cache file under /Users/glen.thomas/.azure/telemetry/20260615163910211
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.87.0/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.87.0/libexec/lib/python3.13/site-packages/azure/cli/telemetry/__init__.py /Users/glen.thomas/.azure /Users/glen.thomas/.azure/telemetry/20260615163910211"
telemetry.process: Return from creating process 88358
telemetry.main: Finish creating telemetry upload process.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.