Skip to content

az upgrade fails stating you are on recent version and fails to pick up the latest verison #33285

@tvhari

Description

@tvhari

Describe the bug

azzure cli latest version is 2.83.0 but i have older and when i try to upgrade is not working.

tvhari@DESKTOP-PD2MN5D:~$ az --version
azure-cli 2.72.0 *

core 2.72.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Config directory '/home/tvhari/.azure'
Extensions directory '/home/tvhari/.azure/cliextensions'

Python (Linux) 3.12.8 (main, Apr 28 2025, 09:24:09) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
tvhari@DESKTOP-PD2MN5D:~$ az --upgrade

tvhari@DESKTOP-PD2MN5D:$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.72.0. Latest version available is 2.85.0.
Please check the release notes first: https://learn.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
[sudo] password for tvhari:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-cli is already the newest version (2.72.0-1
focal).
The following packages were automatically installed and are no longer required:
liburing2 mailcap plocate
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
CLI upgrade failed or aborted.

Related command

tvhari@DESKTOP-PD2MN5D:~$ az --version
azure-cli 2.72.0 *

core 2.72.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Config directory '/home/tvhari/.azure'
Extensions directory '/home/tvhari/.azure/cliextensions'

Python (Linux) 3.12.8 (main, Apr 28 2025, 09:24:09) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
tvhari@DESKTOP-PD2MN5D:~$ az --upgrade

tvhari@DESKTOP-PD2MN5D:$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.72.0. Latest version available is 2.85.0.
Please check the release notes first: https://learn.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
[sudo] password for tvhari:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-cli is already the newest version (2.72.0-1
focal).
The following packages were automatically installed and are no longer required:
liburing2 mailcap plocate
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
CLI upgrade failed or aborted.

Errors

tvhari@DESKTOP-PD2MN5D:~$ az --version
azure-cli 2.72.0 *

core 2.72.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Config directory '/home/tvhari/.azure'
Extensions directory '/home/tvhari/.azure/cliextensions'

Python (Linux) 3.12.8 (main, Apr 28 2025, 09:24:09) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
tvhari@DESKTOP-PD2MN5D:~$ az --upgrade

tvhari@DESKTOP-PD2MN5D:$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.72.0. Latest version available is 2.85.0.
Please check the release notes first: https://learn.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
[sudo] password for tvhari:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-cli is already the newest version (2.72.0-1
focal).
The following packages were automatically installed and are no longer required:
liburing2 mailcap plocate
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
CLI upgrade failed or aborted.

Issue script & Debug output

tvhari@DESKTOP-PD2MN5D:~$ az --version
azure-cli 2.72.0 *

core 2.72.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Config directory '/home/tvhari/.azure'
Extensions directory '/home/tvhari/.azure/cliextensions'

Python (Linux) 3.12.8 (main, Apr 28 2025, 09:24:09) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
tvhari@DESKTOP-PD2MN5D:~$ az --upgrade

tvhari@DESKTOP-PD2MN5D:$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.72.0. Latest version available is 2.85.0.
Please check the release notes first: https://learn.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
[sudo] password for tvhari:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://packages.microsoft.com/repos/azure-cli focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-cli is already the newest version (2.72.0-1
focal).
The following packages were automatically installed and are no longer required:
liburing2 mailcap plocate
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
CLI upgrade failed or aborted.

Expected behavior

Should upgrade to latest

Environment Summary

azure cli upgrade not working inWSL

Additional context

azure cli upgrade not working

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions