How to create a virtual machine using Azure portal
Tags: azure, programming, beginners, learning
Published: 2023-11-22 16:41:38

## 
**Introduction**
What is Azure Virtual Machine? 

It is an Infrastructure as a Service (IaaS) offering from Microsoft Azure, a leading cloud computing platform, includes Azure Virtual Machines (VMs), which are scalable and flexible computing resources that offer a way to run virtualized instances of various operating systems in the cloud. These virtual machines resemble physical computers but exist in a virtualized environment on Azure's data centers.

## Steps in Creating Virtual Machine Using Azure Portal
Sign in to the Azure Portal:
- Open a web browser and go to portal.azure.com.
- Sign in with your Azure account credentials.
Create a New Virtual Machine:

Once you're logged in, click on the "+ Create a resource" button on the left sidebar.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wavspl45bunpolggmc9r.png)

Search for Virtual Machine:
In the search bar, type "Virtual Machine" and press Enter.

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

Select Virtual Machine from the Results:
Click on the "Virtual Machine" option that appears in the search results and select create.

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

Basic Settings:

You will now see a series of configuration steps. Start with the "Basics" tab.

Fill out the following information:

Subscription: Select your Azure subscription.

Resource Group: Create a new resource group or use an existing one.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ea6nder8h72t4jnehdzu.png)
Virtual Machine Name: Provide a unique name for your VM.

Region: Choose the Azure region where you want to deploy the VM.

Image: Choose an operating system image (e.g., Windows, Linux).

Size: Select the VM size based on your needs. You can click "See all" for more options.

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

Administrator Account:

Provide the username and password.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u54y8zp0e68jvoztth5q.png)

Inbound Port Rules:

Configure the public inbound ports. You can use the default rules or create custom rules based on your requirements.
Select HTTP(80) in order to test the virtual machine over browser
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dlukyy8s9544zc54xunq.png)

Disks Configuration:

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

Choose the OS disk type (e.g., Standard HDD, Standard SSD, Premium SSD) and set the size for the OS disk. You can also add data disks if needed.

Networking Configuration:

Configure the virtual network, subnet, and other network settings.

You can also set up a public IP address here if necessary.

Management Configuration:

Configure options like boot diagnostics, auto-shutdown, update management, and backup.

Review + Create:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gfekf0dtav84a7h4sdb4.png)
Wait for validation to get passed
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wogl68lkst8uq3cm0gr8.png)
Click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1fehzyrsnc9gijttcalv.png)
Wait for it to deploy
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gfdw2qraf97z4uyortk.png)
Once deployment is complete
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/px0oahodbhx13f7p7vpg.png)
Select go to resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mxn70rzo7kjdm2xie3nh.png)
This will take you to the overview page
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w82o0zrncfifwan4x7wd.png)