HOW TO CREATE A VIRTUAL MACHINE IN AZURE PORTAL
Tags: azure, cloud, learning, beginners
Published: 2024-04-29 18:07:49

**What is a Virtual Machine (VM)?**
A virtual machine (VM) is essentially a software emulation of a physical computer. It allows you to run multiple operating systems (OS) on a single physical machine, enabling you to utilize resources more efficiently and isolate environments for different purposes. Here's a step-by-step guide to creating a virtual machine, along with illustrations:

### What is virtualization
Virtualization often includes computer-generated versions of hardware, operating systems, storage devices, and more.

**Uses of Virtual Machines:**

**Device Backup:**
VMs facilitate file backups by copying existing programs and operating systems.

**Testing:**
VMs are valuable for testing purposes.
Beta software releases can be tested before final deployment.
Test scripts can be executed within the VM environment.

**Program Development:**
Developers can code applications in a new environment using VMs.
Versions can be deployed directly to the cloud if the VM has cloud server connectivity.

**Cybersecurity:**
VMs allow running programs on host devices with security issues, ensuring safety. 

**STEPS IN CREATING A VIRTUAL MACHINE**
1.Login to Azure Portal
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yagcbc62rzop36406kpq.png)

2.Search for Virtual Machine in the search bar.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b5emhrgzjl0dwae3qpxl.png)
3.Click on the create a Resource Button
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eo90r48d19sx6kb9tl4i.png)
4.Create Resource group
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fqb92pd91guizu5a16se.png)

5. Give the virtual Machine a name
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1evt7blhv6h7kch168ij.png)
6.Select the image 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3hp510qarnoyd898biw.png)
7.Create username and password
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c63c5ohtu5a71lq6v347.png)
8.Select inbound port
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c0tled2toekjkgw8vtnz.png)
9.Go to Monitoring to set 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fc28oygsx5347pmjehn7.png)
10.Disable Monitoring 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ss2ri2gnnqcuuwo92cfi.png)
11.Click on review and create to check if it is validated
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/to5vamivzn0x4zppqgbv.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1cqdpvnu9gqmer3xwipf.png)
12.Click on create to continue
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/33fnmq3770ncbjpqsxhh.png)
13. Click on Go to resources group
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1onsggdcl2zbwsxjhzn0.png)
14.Click on Connect
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iup9drlxw5ke1cja4jjy.png)
15.Download the RDP file and your VM is ready
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t252fn65ppcra1ujctxu.png)
Virtual Machine is ready for Used.