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.

Command `az acs create` always returns error: `Incorrect padding`

See original GitHub issue

Problem Description When a command az acs create is called to create ACS service, it always returns an error Incorrect padding. Environment OS: Windows 10 Version 1607 (build 14393) Python: 3.5.2 AZ CLI:

PS C:\Program Files> az --version
azure-cli (2.0.0)

acs (2.0.0)
appservice (0.1.1b5)
batch (0.1.1b4)
cloud (2.0.0)
component (2.0.0)
configure (2.0.0)
container (0.1.1b4)
core (2.0.0)
documentdb (0.1.1b2)
feedback (2.0.0)
iot (0.1.1b3)
keyvault (0.1.1b5)
network (2.0.0)
nspkg (2.0.0)
profile (2.0.0)
redis (0.1.1b3)
resource (2.0.0)
role (2.0.0)
sql (0.1.1b5)
storage (2.0.1)
vm (2.0.0)

Python (Windows) 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
brendandburnscommented, Mar 9, 2017

@minherz ah, I see the problem…

The code expects the “compact” form of the .ssh key

id-rsa <base64encoded> <user@server>

This is a legit bug in the code. For now, you can work around it by transforming your key to match that form using:

 ssh-keygen -i -f existing_key.pub > formatted_key.pub
1reaction
ImmutableVectorcommented, Jul 14, 2019

Very new to all of this. Can anyone tell me how I use ssh-keygen -i -f existing_key.pub > formatted_key.pub?

I don’t understand the work around. I am very new to all of this and trying to follow a tutorial on aks and they didn’t have this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect padding when creating Azure Container Service
I am creating an Azure Container Service, using this command: az acs create --name acs-cluster --resource-group ACSResourceGroup ...
Read more >
AzureException: TypeError: Incorrect padding with ... - MSDN
Hello,. I'm hitting an issue when attempting to use the az CLIv2.0 and to list a BLOB storage container on a centos image....
Read more >
KBV - River Thames Conditions
Wei chu arizona, Bayern haindling original? Canal plus pirata por internet, Mekeel's, Force carbonation 1 gallon? Boss cs-3 compressor amazon, ...
Read more >
Connecting to IBM iIBM i Access Client Solutions
There are global and specific IBM i Access return codes. ... 20125 - An error occurred while creating a certificate for the certificate...
Read more >
Cortex XSOAR Administrator's Guide
Set up ADFS as the Identity Provider Using SAML 2.0. ... Always use the cp command with the -p flag to retain the...
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