HOW TO CREATE A LINUX VIRTUAL MACHINE IN AZURE PORTAL
Tags: beginners, azure, learning, cloud
Published: 2024-04-30 11:36:20

****What is a Linux Virtual Machine**** 
A Linux Virtual Machine (VM) is a software emulation of a physical computer that runs the Linux operating system. 
This process allows you to deploy a Linux VM running Ubuntu Server 22.04 LTS. 


**Steps in creating a Linux virtual Machine**
1 Login to your Azure Portal and create a resource.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0cpt9fyz4umpikyym3n.png)

2Search for virtual machine and login 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajwmhn0dw7qhg2gmjdjk.png)

3 Create a resource group
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31yptme7ajs250pbru6n.png)

4 Give Virtual Machine a name
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/87ak2x59dhckbg2kituy.png)

5 Go to Image to click on Ubuntu Server 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hktg5pfwlry27oo73v7.png)

6 Set password and username
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ne9wwyj5yimiymv5ut3y.png)

7 Select In bond port 
select ssh and http
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/raeddimtrp3rko07q2cd.png)

8 Go to Monitoring and Disable

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

9 Click on Review and Create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x66eificwtvtp2sp810z.png)

10 click on create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lg3da8ot8ryns0njtgx5.png)

11 Click on go to Resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p06tzwvn5sucro484bue.png)

12 Click on the IP Address to change the idle timeout and save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/96aeadqbk1uzdcy93qae.png)_

13 Click on Connect
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9i0dybzxv5523v72c2aq.png)

14 Select Native SSH
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1izo80qupk3jthrak458.png)

15 Search for Powershell on your system
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zvhq5l1kfbvd9njf6qz8.png)

16 Open Powershell and type ssh space username,password and ipaddress and press enter
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sjfuup45yxvbu4te5cp6.png)

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

18 Continue to use commands
And install NGINX to confirm if you have truly create a linux virtual machine
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nvjlo2ti9tvnnlp079ng.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/63y61ry5wqngyki7wl03.png)

19 Put the Ip address on a new web to confirm if you install a machine
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7yqgy3gxngxso0jfz84k.png)