This quickstart guide shows you how to create a Linux virtual machine (VM) in Azure using the Azure portal.
Sign in to the Azure portal with your Azure account.
In the Azure portal, search for and select Virtual machines.
On the Virtual machines page, select Create then Virtual machine.
On the Create a virtual machine page, use the Basics tab to configure your VM.
myResourceGroupVM, and then select OK.myVM.azureuser.myKey.ssh-keygen.
On the Disks tab, leave the default settings and select Next: Networking >.
On the Networking tab, leave the default settings and select Next: Management >.
On the Management tab, leave the default settings and select Next: Advanced >.
On the Advanced tab, leave the default settings and select Next: Tags >.
On the Tags tab, you can optionally add tags to organize your resources. Then, select Next: Review + create >.
On the Review + create tab, Azure will validate your configuration. Once validation passes, you'll see a summary of your VM's settings. Select Create.
myKey.pem) and store it securely. You'll need it to connect to your VM.
A download link for your private key will appear. Download it and save it to a secure location.
The deployment will take a few minutes. You can monitor the progress in the Azure portal.
Once the deployment is complete, go to the resource overview for your virtual machine.
Find the Public IP address of your VM and copy it.
Open an SSH client and connect to your VM using the following command, replacing with your VM's public IP and ~/.ssh/myKey.pem with the path to your private key file:
ssh -i ~/.ssh/myKey.pem azureuser@<your_public_ip_address>
If prompted to continue connecting, type yes and press Enter.