DEV Community

Obinna Ijoma
Obinna Ijoma

Posted on • Updated on

HOW TO CREATE A LINUX VIRTUAL MACHINE IN MICROSOFT AZURE

Cloud Computing is a concept of using hosted services over the internet such as servers, databases, networking and software.
It makes computer system resources, in particular data storage and processing power, instantly available without requiring the user to manage them directly.

A cloud virtual machine is the digital version of a physical computer that can run in a cloud. Like a physical machine, it can run an operating system, store data, connect to networks, and do all the other computing functions.

Image description

How to create a Linux Virtual Machine on Microsoft Azure:
Step 1
Create a Microsoft azure account and login
Image description

Step 2
Login to your Microsoft azure account and click on Virtual Machine
Image description

Step 3
Click on Create and navigate to 'create a virtual machine hosted by azure'
Image description

Step 4
Image description

  • Select your Subscription
  • Resource group (choice a resource group that consist of similar items eg februaryworkload)
  • Virtual machine (choose a unique name)
  • Select your Region (I like to choose from my location but it is up to you)
  • Availability Options (Choose Availability zone)
  • Availability Zone (It is up to you)
  • Security type: standard
  • Image: Choose any version of Ubuntu Server
  • VM Architecture: Choose x64

Step 5
Image description

  • Authentication type (Choose the size that matches your budget)
  • Username (Choose the username of your choice)
  • Password ( Choose password and confirm)
  • Public Inbound ports (Choose 'Allow selected ports')
  • Selected inbound ports (Choose 'SSH (22)')
  • Click 'Review + create'

Step 6
Click 'Create'
Image description

Step 7
Click 'Go to Resource'
Image description

Step 8
On the top left, click on 'Connect' and select 'SSH'
Image description

Step 9
Image description

Step 10
Copy Command Text from line 2 and Paste in Line 3
Image description

Step 11
Copy line 4 Command in step 10 and go to your PC to search for Windows PowerShell

Image description

Step 12
What your Windows PowerShell looks like when open

Image description

Step 13
In the Windows PowerShell, paste the copied command text 4 into your Windows PowerShell and delete the letters and figures circled in red

Image description

Step 14
Windows PowerShell will prompt a command asking you to connect to serve Virtual Machine type; yes and click ENTER

Step 15
Windows PowerShell will ask for the password of your Virtual Machine, type or paste the password you created in Step 5
NB - This password will not be visible while typing, nevertheless type it and press ENTER when done

Image description

Step 16
You have connected to your Linux Virtual Machine; isn't that easy?
CONGRATULATIONS

Image description

IMPORTANT: In order to save money or credit, it is worthy of note to properly shutdown or delete your azure virtual machine after use because they are billed on a "per hour" basis.

Top comments (0)