How to Create Azure Virtual Machine using Azure Portal

Azure virtual machines (VMs) can be created through the Azure portal. This method provides a browser-based user interface to create VMs and their associated resources. This article will help you to create the Azure virtual machine using the Azure portal.

Note: To create an Azure VM for free, you can sign up for a 30-days Azure free trial.

Useful Articles:

I am assuming you have an Azure subscription. Follow the below steps to create a Linux virtual machine.

Step 1: Log in to Azure Portal

Log in to the Azure portal using the portal link.

Step 2: Create Virtual Machine

Click on “Create a Resource”.

Now, click on “Create” under the option of the Virtual machine as highlighted.

Azure 3

Step 3: Fill out the Required Details

Subscription: Select your subscription.
Resource group: You can select the existing resource group or you can create a new one by clicking the “Create New” option.
Virtual machine name: Enter a name for your virtual machine.
Region: Azure region where you want to create your resource.
Image: Select the Red Hat Enterprise Linux 8.2 (LVM) – Gen2. You can change it according to your requirement.
Size: Select the size you want to assign to your resource.
Authentication type: In the Administrator account section, I am selecting password instead of SSH public key. You can change it according to your requirement. This Username and Password you will use to log in to the VM once created.
Select Inbound port: Under Inbound port rules, choose Allow selected ports and then select SSH (22). You can allow other ports from the drop-down as per your requirement.

Azure 4
Azure 6

I am keeping other options as it is but you can change them as per your requirement. Now click on “Next: Disks”.

In the following screen (Disks), you can add the disk architecture that you need. I kept the default choice for what it needed. You can change it based on your business need.

Azure 7

You can also add and configure additional data disks also.

Azure 8

Click on the Next: Networking option.

Now you can fill in the details on the Networking screen.

Virtual Network: Pick a virtual network or else you can create a new one by clicking the “Create New” link.
Subnet: You can keep the default choice as it is.
Public inbound ports: choose Allow selected ports.
Select inbound ports: Under Inbound port rules, choose Allow selected ports and then select SSH (22). You can allow other ports from the drop-down as per your requirement.

Azure 9
Azure 10

Now, click on Next: Management

Azure Security Center provides unified security management and advanced threat protection across hybrid cloud workloads.

You can keep it as it is and click on Next: Advanced

Extensions provide post-deployment configuration and automation. Click on Next: Tags

Tags are names or value pairs that enable you to categorize resources. When you fill in all the details click on the “Review + Create” button.

It will validate the above details inside and will show a message “Validation passed”.

Azure 14

Step 4:

Now click on the “Create” button

After clicking on create It will show you “Deployment is in progress“.

Azure 15

Once a resource has been created it will show you “Your deployment is complete”. Now click on “Go to resource”

Azure 16

Congratulations, Now you have successfully created the VM.

Azure 17

Step 5:

Connect to Virtual Machine

Now, you can connect virtual machines using connect option or you can use any tool. Here I am connecting the server using Putty.

Azure 18

Enjoy it!

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.