question

Jacob-1815 avatar image
0 Votes"
Jacob-1815 asked srbose-msft commented

Unable to create AKS Cluster from CLI

az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --generate-ssh-keys

Invalid base64-encoded string: number of data characters (17) cannot be 1 more than a multiple of 4


I tried executing this command multiple times via windows cmd or even VS Code terminal

azure-kubernetes-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Jacob-1815 , can you please move the id_rsa and id_rsa.pub files under ~/.ssh folder to a different location and try running the command from Azure CLI again?


0 Votes 0 ·

1 Answer

kasunraj avatar image
0 Votes"
kasunraj answered Jacob-1815 commented

For me its working as expected

az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --generate-ssh-keys

SSH key files 'C:\Users\<>.ssh\id_rsa' and 'C:\Users\<>.ssh\id_rsa.pub' have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage like Azure Cloud Shell without an attached file share, back up your keys to a safe location
- Running ..

Can you check the resource group exists before creating the cluster

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, the resource group does exists, I am able to create cluster from UI but always fails from CLI

0 Votes 0 ·