-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prompts to upgrade from 2.50.0 to 2.51.0, then fails to upgrade (MacOS) #27173
Comments
Hi @mkheck, 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. |
Thank you for opening this issue, we will look into it. |
Thank you @yonzhan, please let me know how I can help, happy to do so. |
@mkheck - having the same issue on my Mac. |
Hi @bebound, that stops the "forced" upgrade but this message still applies with every command executed:
Still, progress. 👍 |
I disabled all updates for now. |
I was able to successfully upgrade it on my Mac using pip –
|
Close as 2.52.0 is available in Homebrew. |
Describe the bug
Running
az upgrade
on a 2.50.0 install of azure-cli on MacOS results in following:Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n):
Updated 1 tap (homebrew/cask-fonts).
Warning: azure-cli 2.50.0_1 already installed
CLI upgrade failed or aborted.
In an effort to resolve this, I've completely uninstalled the azure-cli, deleted the ~/.azure directory, and reinstalled az using homebrew as prescribed here: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-macos
Same results.
NOTE: This is a significant problem because because it affects scripting. As an example: I have creation/configuration scripts I use, and I have several upcoming sessions at a partner conference showcasing Azure Spring Apps etc. Those scripts fail at key points due to the prompt inserting itself into the results (e.g. --query queries assigning values to env vars). This would seem to indicate that customer's production scripts could also be affected, at least in certain circumstances.
Related command
az upgrade
Errors
Warning: azure-cli 2.50.0_1 already installed
CLI upgrade failed or aborted.
Issue script & Debug output
az upgrade
Expected behavior
It should upgrade to the current version as indicated in the prompt it provides when running
az
commands:Your current Azure CLI version is 2.50.0. Latest version available is 2.51.0.
Environment Summary
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 '/usr/local/Cellar/azure-cli/2.50.0_1/libexec/bin/python'
Extensions directory '/Users/markheckler/.azure/cliextensions'
Python (Darwin) 3.10.12 (main, Jun 20 2023, 17:00:24) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Legal docs and information: aka.ms/AzureCliLegal
You have 3 update(s) available. Consider updating your CLI installation with 'az upgrade'
Additional context
No response
The text was updated successfully, but these errors were encountered: