Skip to content

az upgrade failed but no additional debug errors found #28543

@chaoscreater

Description

@chaoscreater

Describe the bug

When using az upgrade, it doesn't update the cli extensions. No errors are found when using --debug.

Reinstalled the latest AZ CLI and I'm getting the same issue.

Related command

az upgrade

Errors

An error occurred whilst updating.
An error occurred. Pip failed with status code 1. Use --debug for more information.

Issue script & Debug output

cli.knack.cli: Command arguments: ['upgrade', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x000001EDB51FF880>, <function OutputProducer.on_global_arguments at 0x000001EDB538E020>, <function CLIQuery.on_global_arguments at 0x000001EDB53B3BA0>]
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 0x000001EDB829AD40>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Ricky\.azure\commands\2024-03-12.00-32-43.upgrade.8276.log'.
az_command_data_logger: command args: upgrade --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x000001EDB82FD260>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x000001EDB82FD300>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x000001EDB82FD440>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000001EDB538E0C0>, <function CLIQuery.handle_query_parameter at 0x000001EDB53B3C40>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x000001EDB82FD3A0>]
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 2437
cli.azure.cli.command_modules.util.custom: You already have the latest azure-cli version: 2.58.0
cli.azure.cli.command_modules.util.custom: Upgrading extensions
cli.azure.cli.command_modules.util.custom: Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview-extensions true' to enable it specifically if needed. Use '--allow-preview-extensions false' to install stable version only.
cli.azure.cli.command_modules.util.custom: Checking update for aks-preview
An error occurred whilst updating.
An error occurred. Pip failed with status code 1. Use --debug for more information.
Failed to update. Rolled aks-preview back to 0.5.163.
cli.azure.cli.command_modules.util.custom: Checking update for azure-devops
An error occurred whilst updating.
An error occurred. Pip failed with status code 1. Use --debug for more information.
Failed to update. Rolled azure-devops back to 0.26.0.

Expected behavior

AZ CLI extensions are updated correctly.

Environment Summary

azure-cli 2.58.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions