Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM Create prompting for admin username #2010

Closed
derekbekoe opened this issue Feb 8, 2017 · 0 comments
Closed

VM Create prompting for admin username #2010

derekbekoe opened this issue Feb 8, 2017 · 0 comments

Comments

@derekbekoe
Copy link
Member

My admin username was invalid and instead of throwing an error and exiting, it prompted me to enter it. It felt inconsistent with how usually, we simply throw an error.

$ az vm create -g debekoe-a4 -n mytestvm --image UbuntuLTS
Cannot use admin username: root. Admin username should be at least 6 characters and cannot be 'root'
Admin Username: ...

However, when I didn't have an SSH public key available, I received an error and there was no prompt:

An RSA key file or key value must be supplied to SSH Key Value. You can use --generate-ssh-keys to let CLI generate one for you.

If the admin username is invalid, should it not prompt and return an error such as below?

$ az vm create -g debekoe-a4 -n mytestvm --image UbuntuLTS
Cannot use admin username: root. Admin username should be at least 6 characters and cannot be 'root'. Specify admin username with --admin-username.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant