HOW TO DEPLOY A LINUX VIRTUAL MACHINE
Published: 2023-02-21 10:16:12

Cloud Computing is the delivery of an on-demand computing service over the internet to offer faster innovation, flexible resource and economies of scale. Especially data storage and computing power, without direct active management by the user.

A virtual machine, commonly shortened to just VM, 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. While the parts that make up your computer (called hardware) are physical and tangible, VMs are often thought of as virtual computers or software-defined computers within physical servers, existing only as code.

While virtual machines run like individual computers with individual operating systems and applications, they have the advantage of remaining completely independent of one another and the physical host machine. A piece of software called a hypervisor, or virtual machine manager, lets you run different operating systems on different virtual machines at the same time. This makes it possible to run Linux VMs, for example, on a Windows OS, or to run an earlier version of Windows on more current Windows OS.

And, because VMs are independent of each other, they're also extremely portable. You can move a VM on a hypervisor to another hypervisor on a completely different machine almost instantaneously.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vcxgx9h2366rx2rcji5v.png)


**The following steps must be properly followed properly in order to create a VM**

STEP 1
login to your Microsoft azure account (portal.azure.com) and go to "search resources" and search and click on "virtual machines"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/47vnqq3afyjm7dhpo47q.png)


STEP 2
Click on create and choose "azure virtual machines"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgcv4c93vii0exzs8kav.png)

STEP 3
Give the virtual machine a name, choose a linux server[Ubuntu server 20.04 LTS - x64 Gen2] , you can choose either "password" or "SSH Key". I chose password and filled in a username and password. Then click "review and create"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lx0dnnldgrtq3wvhg1ou.png)

STEP 4
Make sure the validation passes and click on "Create"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cg13ypsoxgb95wepqkch.png)

STEP 5
Click on "go to resource"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6s1j6mfyuusvqoxoft0r.png)

STEP 6
On the top left, click on 'Connect' and select 'SSH'

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tna7mux0iuj9k22tr57c.png)

STEP 7

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ahymlq0zi215cilba56.png)

STEP 8
Copy Command Text from line 2 and Paste in Line 3

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nzpp0efqzkkdof73dotp.png)

STEP 9
Copy line 4 Command in step 8 and go to your macbook to search for terminal

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6pk41073f110j6gkubo5.png)

STEP 10
What your macbook terminal looks like when open

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xvn392kyvb75qpexdpl4.png)

STEP 11
n the macbook terminal, paste the copied command text 4 into your macbook terminal and delete the letters and figures circled in black

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5hzo4zyv84zguywcrnhs.png)

STEP 12
Macbook Terminal will prompt a command asking you to connect to serve Virtual Machine type; yes and click ENTER

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ad27itgyxjglegi1xs0v.png)

STEP 13
Macbook Terminal will ask for the password of your Virtual Machine, type or paste the password you created in Step 3
NB - This password will not be visible while typing, nevertheless type it and press ENTER when done

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6v6ty4kntjzge41j1kes.png)


STEP 14
HURRAY!!! You have connected to your Linux Virtual Machine. Simple as ABC!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/usid52azml3gllicsqcf.png)

**PLEASE NOTE: Always remember to shut down and delete your azure virtual machine after usage because its a pay-as-you-go service. This will help you save your credit and money.
**