“Incorrect padding” when trying to create managed Kubernetes cluster on Azure with AKS
See original GitHub issueSummary: I get an error when trying to create an AKS cluster from the command line.
Repro:
- Installed azure-cli, logged in to account
az aks create --resource-group cb_aks_spike --name cbakscluster
(resource group already exists)- I also tried
az aks create --resource-group cb_aks_spike --name cbakscluster --generate-ssh-keys
Expected: The AKS cluster creation to start.
Actual:
Error:
az aks create: error: Incorrect padding
Notes: I initially posted this on Stack Overflow since I assumed it was something I did wrong, but after working through it with @benofben I think it could be a bug (or at least a confusing error message).
This error doesn’t occur when @benofben did it from bash on a Mac, and also doesn’t occur for me when I tried it in Cloud Shell-PowerShell
Environment summary
azure-cli (2.0.31) Windows 10 Enterprise 100.16299 Windows Powershell 5.1.16299.251
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
az aks create: error: Incorrect padding - Stack Overflow
"Incorrect padding" when trying to create managed Kubernetes cluster on Azure with AKS · Check if these steps helps. · It's a similar...
Read more >Incorrect Padding When Trying To Create Managed ... - ADocLib
Incorrect Padding When Trying To Create Managed Kubernetes Cluster On Azure With ... We start by using the Azure portal to create a...
Read more >Deploying a Django application in Azure AKS with an Ingress ...
Microsoft Azure Kubernetes Service (AKS) provides a fully-managed Kubernetes service to ... E: az aks create: error: Incorrect padding.
Read more >Release notes & updates – Azure CLI - Microsoft Learn
Fix #10765: Refine error message when account key is incorrect padding ... Add managed cluster stop/start bindings; az aks check-acr : Fix Kubernetes...
Read more >imported by torstenvolk - Text Network Graph - InfraNodus
</p>"Incorrect padding" when trying to create managed Kubernetes cluster on Azure with AKS<p>I'm trying to report Node.js errors to Google Error Reporting, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m a consultant at a customer site. I’m unable to control the name of the user directories and the one I’ve been given - “C:\Users\don airey” - has this issue. This command in the Repo above works fine on my home machine where my user directory is “C:\Users\DAirey” but fails when I’m at my client’s site. This is still a bug. Please fix it.
Try the following workaround:
ssh-keygen -i -f existing_key.pub > formatted_key.pub
See related issue https://github.com/Azure/azure-cli/issues/2386 where this is confirmed to be a bug.