question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

“Incorrect padding” when trying to create managed Kubernetes cluster on Azure with AKS

See original GitHub issue

Summary: I get an error when trying to create an AKS cluster from the command line.

Repro:

  1. Installed azure-cli, logged in to account
  2. az aks create --resource-group cb_aks_spike --name cbakscluster (resource group already exists)
  3. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
DonaldAireycommented, May 26, 2021

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.

2reactions
tjprescottcommented, Apr 18, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found