AKS icon indicating copy to clipboard operation
AKS copied to clipboard

az aks 'update' is not in command group

Open bq1756 opened this issue 7 years ago • 4 comments

What happened: When I execute the command 'az aks update', I see a response "az aks: 'update' is not in the 'az aks' command group. See 'az aks --help'."

What you expected to happen: I expected to update my aks cluster configuration.

How to reproduce it (as minimally and precisely as possible): type 'az aks update' on command prompt

Anything else we need to know?: 'az --version' shows "azure-cli 2.0.61" I installed az cli 2.0.61 via MSI installer I installed azurerm via 'install-module azure' I am attempting to add the k8s cluster autoscaler according to https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler. This article instructs me to run

az aks update
--resource-group myResourceGroup
--name myAKSCluster
--enable-cluster-autoscaler
--min-count 1
--max-count 3

Environment:

  • PowerShell 6.0

bq1756 avatar Apr 08 '19 21:04 bq1756

I solved the problem. The GA version of az cli does not contain 'update'. 'update' is a preview feature. To enable az cli preview features, I ran: az extension add --name aks -preview

bq1756 avatar Apr 09 '19 16:04 bq1756

I solved the problem. The GA version of az cli does not contain 'update'. 'update' is a preview feature. To enable az cli preview features, I ran: az extension add --name aks -preview

bq1756 avatar Apr 09 '19 16:04 bq1756

There is no space before "-preview". az extension add --name aks-preview

dstarosta avatar Sep 10 '19 21:09 dstarosta

As there is no doc added in the Az Cli, I don't think it's valid to close the ticket @bq1756

gynet avatar Feb 14 '20 22:02 gynet