HOW TO CREATE LINUX VIRTUAL MACHINE ON MICROSOFT AZURE
Tags: linux, azure, microsoft, cloudcomputing
Published: 2024-04-15 16:10:16

Linux on Microsoft Azure refers to the availability of Linux-based virtual machines (VMs) and other Linux-related services and solutions within the Azure cloud computing platform. Here's a brief summary of Linux on Microsoft Azure.

**STEP ONE**
Open Azure cloud services, and click on portal menu.

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

**STEP TWO**
Click on virtual machines

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

**STEP THREE**
click on create


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

This is how your interface should look like after you click on create... 

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

**STEP FOUR**

Select your subscription and resource group.

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

**STEP FIVE**

When creating a virtual machine (VM) on Microsoft Azure, you need to configure various instance details to customize the VM according to your requirements. Here are the key aspects of the instance details when creating a VM:

- Give your virtual machine a name
- Select the region of your choice
- Select your availability option
- Select your availability zone

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

**STEP SIX**
SECURITY
-Security type: i leave it at Standard.
- Image: This is the operating system of the virtual machine.

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

**STEP SEVEN**
VM ARCHITECTURE
Under Virtual Machine architecture, Select X64

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

**STEP EIGHT**
SIZE
Select a size of your choice, this depends on the project you are doing on the vm, capacity of your vm must be seriously considered.

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

**STEP NINE**

- Chose your username for your virtual machine
- Chose your password and confirm on the second bar.


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

**STEP TEN**

-Public inbound ports: click on allow selected ports
- Select inbound port: click on ssh


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

**STEP ELEVEN**
Click on Next Disk

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

For the sake of this exercise kindly leave this on default.

**STEP TWELVE**
NETWORK
An Azure Virtual Network (VNet) is a network or environment that can be used to run VMs and applications in the cloud. When it is created, the services and Virtual Machines within the Azure network interact securely with each other.

 The system automatically generates the network the IP address.
For the sake of this exercise leave it at default.

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

Click on Next Management

**STEP THIRTEEN**
MANAGEMENT
For the sake of this exercise kindly leave everything at default.

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

Click on Next Monitoring

**STEP FOURTEEN**

MONITORING
Kindly leave everything here at default.


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

click on Next Advance

**STEP FIFTEEN**
ADVANCE
Kindly leave everything here on default


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


Click on Next tags 

**STEP SIXTEEN**
TAGS
Tags are user-defined Key/Value pairs which can be placed directly on a resource or a resource group. Azure currently supports up to 15 tags per resource and resource group. Tags may be placed on a resource at the time of creation or added to an existing resource.

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

**STEP SEVENTEEN**
REVIEW AND CREATE
At this point you should have verification passed as highlighted in the image below. then click on create.

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

**STEP EIGHTEEN**
After deployment is done you should have deployment complete and after that click on download resources.


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

**STEP NINTEEN**
At this stage it is advised you copy your username and IP address on a notepad. click on connect.

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


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


**STEP TWENTY**
Open your windows search bar and search for microsoft power shell.

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

Input your ssh username@IP address, the system will ask if you want to continue configuration kindly type "yes"

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

Kindly input your password and hit enter, NOTE that your password will not be visible due to security reasons and it is advisable that we be careful.

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

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

Input the phrase "sudo su" and in the next line input "sudo apt update" this command enables you to take charge of your Linux virtual machine.

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

If you successfully follow these steps then you can confidently say you have created a Linux virtual machine.

Thank you and d have a nice day.