Unable to create AKS Cluster from CLI

Jacob 21 Reputation points
2021-08-07T18:52:25.68+00:00

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 (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,138 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kasun Rajapakse 431 Reputation points
    2021-08-08T03:24:07.397+00:00

    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 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.