Typing password is a time wasting process. It is recommended to use SSH with public private keys to access Linux VM box. To do that in Azure, first you need to create a key pair using following command
Then you can :
- Proceed to create VM in using Azure portal (recommended for beginners and when you don’t need some sort of automation). You need to upload .pem file.
- Use azure cli to create your VM from command line (advanced user). Details on this available in my gist here
To use SSH key: