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.

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

See original GitHub issue

As I am trying out to create new VM using azure CLI, it is throwing error in my bash and command window as shown below

az vm create --resource-group "learnVMResourceGroup" --name "learnVM" --image UbuntuLTS --admin-username "learnadmin" --generate-ssh-keys
ERROR: Invalid base64-encoded string: number of data characters (17) cannot be 1 more than a multiple of 4

Steps:

  1. Logged in to my account using az login
  2. Trying to create vm using az vm create --resource-group "learnVMResourceGroup" --name "learnVM" --image UbuntuLTS --admin-username "learnadmin" --generate-ssh-keys

Azure CLI Version : 2.34.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SaurabhSharma-MSFTcommented, Apr 5, 2022

@piyushsh We are looking into it and get back to you for any additional information.

0reactions
piyushshcommented, Apr 26, 2022

@zhoxing-ms It worked, so closing this issue. Thanks for the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python: Invalid base64-encoded string: number of data ...
python: Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4 · Ask Question. Asked 3...
Read more >
invalid base64-encoded string: number of data characters (17 ...
We'll show this source less for all searches. Invalid base64-encoded string: number of data characters (217) cannot be 1 more than a multiple...
Read more >
Unable to create AKS Cluster from CLI - Microsoft Q&A
Invalid base64-encoded string : number of data characters (17) cannot be 1 more than a multiple of 4. I tried executing this command...
Read more >
Issue 34736: Confusing base64.b64decode output
msg325757 ‑ (view) Author: Mark Dickinson (mark.dickinson) * Date: 2018‑09‑19 13:00 msg325844 ‑ (view) Author: Tal Einat (taleinat) * Date: 2018‑09‑20 05:42 msg325845 ‑ (view)...
Read more >
base64: invalid input error when trying to decode contents of ...
base64.encoded.string.representing.the.original.yaml==" is even worse. Base64-encoding adds = signs for padding, but ...
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