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.
- The error message is unhelpful.
- This should be allowed…
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
@Trotts, @colemickens. I have started looking into this issue. The fix should be out in the release after this upcoming release.