azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

WSL - Unable to upgrade from 2.72.0 to 2.73.0

Open jordanchang opened this issue 1 year ago • 3 comments

Describe the bug

I am unable to run "az upgrade" on my Windows 2019 with WSL. The command starts and then gets stuck in a infinite loop trying to detect the latest version

Related command

az upgrade

Errors

None

Issue script & Debug output

Your current Azure CLI version is 2.72.0. Latest version available is 2.73.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 Hit:1 https://packages.microsoft.com/repos/azure-cli focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done azure-cli is already the newest version (2.72.0-1~focal). 0 upgraded, 0 newly installed, 0 to remove and 271 not upgraded. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0. 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.72.0. It will be updated to 2.73.0.

Expected behavior

az upgrade should upgrade to latest available version. As of today, it is 2.73.0

Environment Summary

azure-cli 2.72.0 Windows 2019 WSL

Additional context

No response

jordanchang avatar May 27 '25 21:05 jordanchang

Hi @jordanchang,

2.72.0 is not the latest Azure CLI(2.73.0).

If you haven't already attempted to do so, 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.

yonzhan avatar May 27 '25 21:05 yonzhan

The infinite loop is a known issue of auto upgrade: https://github.com/Azure/azure-cli/issues/19196

Please refrain from using auto upgrade:

az config set auto-upgrade.enable=no

Please follow https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=apt to upgrade Azure CLI.

Note that 2.73.0 is not released for Ubuntu 20.04 as Ubuntu 20.04 is no longer supported: https://github.com/Azure/azure-cli/pull/31208

jiasli avatar May 28 '25 06:05 jiasli