DEV Community

Cover image for How to create a virtual machine using Azure portal
Olalekan Oladiran
Olalekan Oladiran

Posted on • Updated on

How to create a virtual machine using Azure portal

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

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

Image description

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

Image description

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
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

Administrator Account:

Provide the username and password.
Image description

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

Disks Configuration:

Image description

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
Wait for validation to get passed
Image description
Click create
Image description
Wait for it to deploy
Image description
Once deployment is complete
Image description
Select go to resource
Image description
This will take you to the overview page
Image description

Top comments (0)