azure-cli: Command `az acs create` always returns error: `Incorrect padding`
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)]
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 21 (7 by maintainers)
@minherz ah, I see the problem…
The code expects the “compact” form of the .ssh key
This is a legit bug in the code. For now, you can work around it by transforming your key to match that form using:
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.
Had the same
uudecode failed
(running from macos fwiw) Workaround: stored the pubkey in a variable and referenced insteadI’m not sure if anyone else is getting this problem. The workaround specified:
Does not work. It errors with
uudecode failed
My current public key is potentially already in the “compact” format which looks similar to what @brendandburns states the pubkey needs to look like except that instead of the uuencoded string preceded with “id_rsa”, mine is preceded with “ssh-rsa”. The rest of the key seems correct unless the keypair is supposed to be a different key type. Mine was created as an RSA protocol 2 key pair. I believe this is likely a problem with the type of key I created. However, I haven’t seen any documentation that is explicit about that. I’m going to continue working with some ideas and if anything works, I’ll repost.