DEV Community

tomia456
tomia456

Posted on

HOW TO CREATE A LINUX VIRTUAL MACHINE ON MICROSOFT AZURE

STEP 1
login to your Microsoft azure account and navigate to Create Resource

Image description

STEP 2
Click! And select Virtual Machine

Image description

STEP 3

Image description

*Select your Subscription
*Select or Create your Resource group
*Give Virtual machine a name (it must be a unique name)
*Select your Region (preferable east Us)
*Availability Option must be set at "Availability zone"
*Click on the your Preferred zone
*Security type: standard
*img: select any version of Ubuntu for a linux Virtual Machine

STEP 4

Image description

Size should be set depending on your Budget

STEP 5

ADMINISTRATOR ACCOUNT
Administrator type : Password
UserName: azureuser
password: ********

Image description

STEP 6

Select inbound port as SSH(22)
Then click and select "Review + Create"

Image descriptiona

STEP 7
Click and Select "Create"

Image description

STEP 8

Click and Select "Go to Resource"

Image description

STEP 9

Click one Connect **on the top Left side and Select **SSH

Image description

STEP 10

Copy Command Text from line 2 and Paste in space bar 3

Image description

STEP 11
Copy Command Text 4 and Then go to your main Pc and open powerShell software

Image description

STEP 12
Once in powerShell paste the Command Text 4 into power shell

Image description

STEP 13

1) Delete "-i chmod 400 .pem"
2) leave ssh azureuser@4.236.186.54 and click enter

Image description

STEP 13
PowerShell is going to prompt a command asking you to connect to serve Virtual Machine type yes and Click ENTER

Step 14 Step
PowerSHell is going to ask you to Type in password for your virtual machine you created in step 5
you can type in the password manually or user shortcut command key
" strg V" in Windows and in Mac "cmd V"
Note
password may not show when you type in the powerShell so make sure the password is correct and then press enter

Image description

FINAL STEP
Congratulations You are now connected to your Linux virtual Machine

Image description

Top comments (0)