DEV Community

Cover image for AZURE Virtual Machines(VMs).Creation of Linux VMs.
BAIBHAV VISHAL PANI
BAIBHAV VISHAL PANI

Posted on

AZURE Virtual Machines(VMs).Creation of Linux VMs.

Azure VMs

  • A virtual machine, is no different than any other physical computer like a laptop, smart phone or server. It has a CPU, memory, disks to store your files and can connect to the internet if needed.

  • A hypervisor is the software that integrates the physical hardware and the VM's virtual "hardware".

  • The benefits of VMs are :

  1. Cost Savings.
  2. Agility and Speed
  3. Lowered downtime
  4. Scalability
  5. Security Benefits
  • We can create virtual machine of windows and different versions of linux as well.

Creating a Virtual Machine (Linux):

  • First of all create a Resource Group .

  • Then click on the Virtual Machines under Azure Services.

Image description

  • Then click on Create.

  • Then choose Azure Virtual Machine.

Image description

  • Then choose the resource group you have created.
  • Then add a name to your Virtual Machine.
  • Then select region according to your needs.
  • In availability region select No infrastructure redundancy required.
  • In image select Ubuntu Server 20.04 LTS Gen2.
  • Then under Administration Account choose Password under Authentication Type
  • Then add your username and password.
  • Under Inbound Port rules select SSH under Select inbound ports.
  • Customise NSG as per the need.

Image description

Image description

  • Then click on Next until you reach the Review + create.
  • Then click on create.

Image description

  • Need to wait for the virtual machine to be created.
  • Then we will see a screen like this.

Image description

  • Then go to your VM you created.
  • Then click on connect and select SSH.

Image description

  • Then copy the command.

Image description

  • Now open Xshell 7 on your desktop.
  • There paste the command you recently copied by right clicking from your mouse and select paste.

Image description

  • Then using your arrow keys erase -i private key path.

Image description

  • Then press enter.

  • Then click on Accept and Save.

Image description

  • Then enter your password you entered while creating your VM and click on OK.

Image description

  • Hence you are logged into your Linux VM.

Image description

Stay tuned for my upcoming blogs.

Thank You !

Top comments (0)