Azure-docs: Cannot deploy an AKS Cluster

Created on 21 Jun 2019  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

az group create --name myResourceGroup --location centralus
Unable to load extension 'aks-preview'. Use --debug for more information.
{
"id": "/subscriptions/e91c06e3-00de-4cc1-a69e-62e4d9f6e204/resourceGroups/myResourceGroup",
"location": "centralus",
"managedBy": null,
"name": "myResourceGroup",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null,
"type": null
PASSWORD_WIN="P@ssw0rd1234"
az aks create \
> --resource-group myResourceGroup \
> --name myAKSCluster \
> --node-count 1 \
> --enable-addons monitoring \
> --kubernetes-version 1.14.0 \
> --generate-ssh-keys \
> --windows-admin-password $PASSWORD_WIN \
> --windows-admin-username azureuser \
> --enable-vmss \
> --network-plugin azure
Unable to load extension 'aks-preview'. Use --debug for more information.
az: error: unrecognized arguments: --windows-admin-password P@ssw0rd1234 --windows-admin-username azureuser --enable-vmss
usage: az [-h] [--verbose] [--debug]
[--output {json,jsonc,table,tsv,yaml,none}] [--query JMESPATH]
{aks} ...


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

awaiting-product-team-response container-servicsvc cxp product-question triaged

All 9 comments

Thanks for the question. We are currently investigating and will update you shortly.

@stgraves Can you please confirm that you followed all the pre-requisites listed here:
which includes:

  1. Install aks-preview CLI extension
  2. Register Windows preview feature

I have the same problem.

Command:
az aks create \ --resource-group myResourceGroup \ --name myAKSCluster \ --enable-vmss \ --node-count 2 \ --node-vm-size Standard_D4s_v3 \ --location westeurope \ --ssh-key-value /key/path \ --kubernetes-version 1.13.5

Error:

Unable to load extension 'aks-preview'. Use --debug for more information. az: error: unrecognized arguments: --enable-vmss usage: az [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv,yaml,none}] [--query JMESPATH] {aks} ...

I've already followed all the pre-requisites, listed here

Yes, I've already followed the steps and done the pre-requisites. I've created many AKS clusters since public preview was opened.

I'll ping the product team to see if there are any known issues.

@stgraves Can you provide the version of the extension and Azure CLI?
az --version

Azure CLI min. version should be: 2.0.61
ASK extension latest is: 0.4.5

@stgraves Can you please share the details requested in the comment above so that we can assist you better.

I updated the AKS extension and it's working now. Thanks! I thought I updated the AKS extension the other day but I guess not.
The error message could be better to call out the extension needs to be updated.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

m-andersen picture m-andersen  Â·  65Comments

renattomachado picture renattomachado  Â·  42Comments

DanijelMalik picture DanijelMalik  Â·  82Comments

tvperez76 picture tvperez76  Â·  55Comments

Sudharma picture Sudharma  Â·  48Comments