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 doesn't work if the user specifies an admin password + ssh key; gives an unhelpful error message

See original GitHub issue

$ az vm create --name=colemick-nixosdev1 --resource-group=colemick-nixosdev1 --admin-username=cole --admin-password=redacted '--ssh-key-value=...' --size=Standard_D16s_v3 --image=/subscriptions/aff271ee-e9be-4441-b9bb-42f5af4cbaeb/resourceGroups/aznixos/providers/Microsoft.Compute/images/nixos-image-16.09.1694.019dcc3-x86_64-linux-vhd

az vm create: error: incorrect usage for authentication-type 'password': [--admin-username USERNAME] --admin-password PASSWORD

and then it works if I removed the SSH key.

  1. The error message is unhelpful.
  2. This should be allowed…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tjprescottcommented, May 7, 2018

@colemickens if the API has no issue with it, I see no reason not to accept this change. I think the original validation was likely based on the Portal behavior. cc/ @yugangw-msft, @johanste

0reactions
adewaleocommented, Nov 15, 2018

@Trotts, @colemickens. I have started looking into this issue. The fix should be out in the release after this upcoming release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure CLI create VM and assign it a password AND a ssh key ...
Here is the command I want to use but it just creates the ssh key and ignores creating the password. Labels:
Read more >
Troubleshoot connecting to your instance - AWS Documentation
Error: User key not recognized by server. If you use SSH to connect to your instance. Use ssh -vvv to get triple verbose...
Read more >
Virtual Machine Management Guide - oVirt
Open a console to the virtual machine if one does not open automatically. ... In the User's Public Key text field, paste the...
Read more >
Azure arm - Builders | Packer - HashiCorp Developer
If you're running Packer on an Azure VM with a managed identity you don't need to specify any additional configuration options. As Packer...
Read more >
GXP1610/GXP1615 GXP1620/GXP1625 GXP1628/GXP1630 ...
GXP1610/GXP1615/GXP1620/GXP1625/GXP1628/GXP1630 firmware contains third-party software licensed under the GNU General Public License (GPL). Grandstream uses ...
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