You create an Ubuntu Linux virtual machine (VM) by using the Azure Portal. You do not specify a password when you create the VM. You need to connect to the terminal of the VM.
Solution: You connect to the private IP address of the VM by using Secure Shell (SSH) and specify your public key. Does the solution meet the goal?