-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamPossible-SolutionSimilar-IssueUpgradeaz upgradeaz upgradequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Description
Describe the bug
When I use az upgrade to upgrade the azure-cli to the latest, 2.76.0 from 2.72.0, it results in staying in 2.72.0
Related command
az upgrade --yes
Errors
azure-cli is not upgraded
Issue script & Debug output
az upgrade --debug --yes
cli.knack.cli: Command arguments: ['upgrade', '--debug', '--yes']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f2d964f77e0>, <function OutputProducer.on_global_arguments at 0x7f2d962467a0>, <function CLIQuery.on_global_arguments at 0x7f2d9628bce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'upgrade': ['azure.cli.command_modules.util']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: util 0.002 3 7
cli.azure.cli.core: Total (1) 0.002 3 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 3 groups, 7 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : upgrade
cli.azure.cli.core: Command table: upgrade
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f2d9562c360>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/azureuser/.azure/commands/2025-08-06.15-20-22.upgrade.4191395.log'.
az_command_data_logger: command args: upgrade --debug --yes
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x7f2d95683060>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x7f2d95683100>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x7f2d95683240>, <function register_upcoming_breaking_change_info.<locals>.update_breaking_change_info at 0x7f2d956832e0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f2d96246840>, <function CLIQuery.handle_query_parameter at 0x7f2d9628bd80>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x7f2d956831a0>]
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
urllib3.connectionpool: Starting new HTTPS connection (1): raw.githubusercontent.com:443
urllib3.connectionpool: https://raw.githubusercontent.com:443 "GET /Azure/azure-cli/main/src/azure-cli/setup.py HTTP/1.1" 200 2549
cli.azure.cli.command_modules.util.custom: Your current Azure CLI version is 2.72.0. It will be updated to 2.76.0.
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:6 https://cli.github.com/packages stable InRelease
Get:8 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
Hit:9 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:11 https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial InRelease
Hit:12 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:5 https://apt.llvm.org/focal llvm-toolchain-focal-17 InRelease
Hit:7 https://apt.llvm.org/focal llvm-toolchain-focal-14 InRelease
Hit:10 https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.32/deb InRelease
Hit:13 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Fetched 57.7 kB in 1s (40.7 kB/s)
Reading package lists... Done
cli.azure.cli.command_modules.util.custom: Update azure cli with 'sudo apt-get install --only-upgrade -y azure-cli'
Reading package lists... Done
Building dependency tree
Reading state information... Done
azure-cli is already the newest version (2.72.0-1~focal).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
cli.azure.cli.command_modules.util.custom: CLI upgrade failed or aborted.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f2d9562c5e0>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 4.649 seconds (init: 0.168, invoke: 4.481)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3913 in cache file under /home/azureuser/.azure/telemetry/20250806152027408
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/__init__.py /home/azureuser/.azure /home/azureuser/.azure/telemetry/20250806152027408"
telemetry.process: Return from creating process 4192337
telemetry.main: Finish creating telemetry upload process.
Expected behavior
azure-cli should be upgraded to the latest
Environment Summary
{
"azure-cli": "2.72.0",
"azure-cli-core": "2.72.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"aks-preview": "18.0.0b25",
"amg": "2.6.1",
"interactive": "1.0.0b1"
}
}
Additional context
No response
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamPossible-SolutionSimilar-IssueUpgradeaz upgradeaz upgradequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that