core icon indicating copy to clipboard operation
core copied to clipboard

Invalid base64-encoded string error occurred when trying to create aks cluster

Open ailani opened this issue 3 years ago • 2 comments

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/deploy-microservice-tutorial/azure-resources Operating System: windows 11 64 Bit

I tried the command from the tutorial

az aks create --resource-group MyMicroserviceResources --name MyMicroserviceCluster --node-count 1 --enable-addons http_application_routing --generate-ssh-keys

and it gave the error. I created free subscription on Azure and created the resource in westus region as per the tutorial. I am new to Azure so don't know what could have gone wrong. If someone has encountered this problem or know how to solve it, please help.

ailani avatar Sep 20 '22 11:09 ailani

What was the exact error message you got?

mairaw avatar Sep 20 '22 19:09 mairaw

Thank you Maira for checking. Here is the exact error I got

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

ailani avatar Sep 21 '22 04:09 ailani

My problem got solved. I saw another thread. Problem was, I didn't have the .ssh directory in my Users directory location. Created it using ssh-keygen and then the command worked. Thank you.

ailani avatar Sep 23 '22 13:09 ailani