$ 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...
$ 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-vhdaz vm create: error: incorrect usage for authentication-type 'password': [--admin-username USERNAME] --admin-password PASSWORDand then it works if I removed the SSH key.