az: 'upgrade' is not in the 'az' command group
Asked Answered
O

2

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?

Overload answered 23/7, 2021 at 8:33 Comment(0)
O
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

Overload answered 23/7, 2021 at 11:30 Comment(0)
P
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.

Paule answered 23/7, 2021 at 8:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.