Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az upgrade not upgrading from version 2.50 to version 2.51 #27091

Closed
rick-wubs opened this issue Aug 4, 2023 · 10 comments
Closed

az upgrade not upgrading from version 2.50 to version 2.51 #27091

rick-wubs opened this issue Aug 4, 2023 · 10 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Upgrade az upgrade
Milestone

Comments

@rick-wubs
Copy link

Describe the bug

The az upgrade command says it will upgrade to the latest version. I have currently version 2.50 installed, and it says version 2.51 is available. However, when I run az upgrade it says 'already up to date'.

Related command

az upgrade

Errors

Already up-to-date.
Warning: azure-cli 2.50.0_1 already installed
WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

Issue script & Debug output

~ az upgrade --debug
cli.knack.cli: Command arguments: ['upgrade', '--debug']
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 0x1031bdb40>, <function OutputProducer.on_global_arguments at 0x10324a710>, <function CLIQuery.on_global_arguments at 0x1032afb50>]
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.001 3 7
cli.azure.cli.core: Total (1) 0.001 3 7
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 0x103d61870>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users//.azure/commands/2023-08-04.07-08-06.upgrade.18451.log'.
az_command_data_logger: command args: upgrade --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x103e1a200>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x103e37d00>, <function register_cache_arguments..add_cache_arguments at 0x103e37e20>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x10324a7a0>, <function CLIQuery.handle_query_parameter at 0x1032afbe0>, <function register_ids_argument..parse_ids_arguments at 0x103e37d90>]
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 2428
cli.azure.cli.command_modules.util.custom: Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
cli.azure.cli.command_modules.util.custom: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
cli.azure.cli.command_modules.util.custom: Update homebrew formulae
Already up-to-date.
cli.azure.cli.command_modules.util.custom: Update azure cli with 'brew upgrade azure-cli'
Warning: azure-cli 2.50.0_1 already installed
WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

Warning: azure-cli 2.50.0_1 already installed
WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

Expected behavior

when I have version 2.50 and version 2.51 is available, I expect az upgrade to upgrade version 2.50 to version 2.51

Environment Summary

~ az --version
azure-cli 2.50.0 *

core 2.50.0 *
telemetry 1.0.8 *

Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.50.0_1/libexec/bin/python'
Extensions directory '/Users//.azure/cliextensions'

Python (Darwin) 3.10.12 (main, Jul 28 2023, 18:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

@rick-wubs rick-wubs added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Aug 4, 2023
@azure-client-tools-bot-prd
Copy link

Hi @rick-wubs,

2.50.0 is not the latest Azure CLI(2.51.0).

Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Aug 4, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Upgrade az upgrade labels Aug 4, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 4, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost assigned jiasli Aug 4, 2023
@ghost ghost added this to the Backlog milestone Aug 4, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 4, 2023
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Aug 4, 2023
@bebound
Copy link
Contributor

bebound commented Aug 4, 2023

2.51 is not released to Homebrew yet, see #27047

@yonzhan yonzhan added feature-request and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Aug 9, 2023
@WaitingForGuacamole
Copy link

Is there a timeline for getting this into Homebrew?

@bebound
Copy link
Contributor

bebound commented Aug 10, 2023

We plan to remove two dependencies, which takes extra effort.
We’ll release 2.52 to Homebrew on Sep 5

@noumanmanan-msft
Copy link

It looks like there is no way to run 'az' on macos anymore. Everytime az command is run, for any service, it tries to upgrade, shows the following warning and keeps doing this in a loop.

Warning: azure-cli 2.50.0_1 already installed
WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

Is there anyway we can fix this before Sep. 5th?

Thank you

@krknopp
Copy link

krknopp commented Aug 10, 2023

Hopefully this workaround won't delay a real fix, but this got me working while I wait.

az config set auto-upgrade.enable=no

@noumanmanan-msft
Copy link

Thank you @krknopp

@nikolajbrinch
Copy link

pip3 install azure-cli==2.51.0 will do the trick. Be aware that my 2.50.0 will not work with Azure (it just hangs when running Bash shell scripts that query information from Azure), but after installing 2.51.0 everything works again. Major bug, and unreliable for infrastructure. I had to get the storage account keys manually out to feed into terraform to upgrade some AKS clusters (normally they are fetched from scripts into ENV variables, so only people with access can do this and they do not get into source).

@bebound
Copy link
Contributor

bebound commented Sep 6, 2023

Close as 2.52.0 is available in Homebrew.

@bebound bebound closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Upgrade az upgrade
Projects
None yet
Development

No branches or pull requests

8 participants