5

I want to upgrade azure cli to 2.26.1 version from 2.0.81 in window subsystem of linux(wsl ubuntu). I am trying to use command az upgrade . It is giving following error:

az: 'upgrade' is not in the 'az' command group. See 'az --help'. If the command is from an extension, please make sure the corresponding extension is installed. To learn more about extensions, please visit https://learn.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview

Is there some way to upgrade it in ubuntu?

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18

2 Answers2

7

I got the solution of it. I just reinstall the azure cli through following link.

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt

1

Unfortunately your az cli version is to old to use this feature.

From the documentation:

The az upgrade command was added in version 2.11.0 and will not work with versions prior to 2.11.0. Older versions can be updated by reinstalling as described in Install the Azure CLI.

Manuel Batsching
  • 3,406
  • 14
  • 20