DEV Community

Afolabi Victor
Afolabi Victor

Posted on • Edited on

HOW TO CREATE A LINUX VIRTUAL MACHINE ON MICROSOFT AZURE

STEP 1
login to your Microsoft azure account and navigate to the search resources and search "virtual machines"

Image description

STEP 2
Click on create and select azure virtual machines

Image description
STEP 3

Fill out the necessary fields, select your resource group

Image description

STEP 4
Give your virtual machine a name

Virtual Machine Name: input a name for your virtual machine
Region: select a region where the virtual machine will be located
Availability option: availability zone
Zone: select any zone of your choice
security type: standard
Image: select the base operating system you prefer

Image description

STEP 5

click on SSH public key and input any username of your choice
then click on review and create

Image description

STEP 6

download the private key file and continue

Image description

STEP 7
go to resource

Image description

STEP 8

click on your public Ip address to extend your idle timeout frame

Image description

Image description

then click save

STEP 9
go back to your virtual machine and click on connect and select SSH

Image description

STEP 10

Go to your windows search menu and search for powershell.
open your powershell

Image description

STEP 11

go to the folder you downloaded your private key and right click to copy the path of the file

Image description

paste the copied path in the private key path on your azure portal

Image description

STEP 12

copy the command to your clipboard

Image description

go to your powershell and paste the code then hit enter

Image description


Image description

Enjoy!!!!

Top comments (0)