az --version
shows there are available updates when there is actually not
#24221
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
feature-request
Installation
Upgrade
az upgrade
Milestone
Related command
az --version
az upgrade
Describe the bug
Azure CLI has dropped support for some environments:
However, in those environments,
az --version
still shows there are available updates:This because Azure CLI checks the latest version from source code on GitHub repo, instead of corresponding package repo:
azure-cli/src/azure-cli-core/azure/cli/core/util.py
Lines 299 to 303 in 8357f17
To Reproduce
Lauch a CentOS 7 docker container and install Azure CLI:
Expected behavior
az --version
shouldn't show available updates in those environments.The text was updated successfully, but these errors were encountered: