DEV Community

Cover image for How to create a virtual machine in Azure.
UMEOHIA NNAMDI
UMEOHIA NNAMDI

Posted on

How to create a virtual machine in Azure.

What is a Virtual Machine?

A virtual machine (VM) is a software-created version of a physical computer. It operates its own operating system (OS) and runs applications just like a physical machine, but within an isolated environment managed by a software layer called a hypervisor. This enables one physical computer to host several virtual machines at once.

Each VM is equipped with its own virtual CPU, memory, storage, and network interface, allowing it to function as an independent computer system.

Creating a virtual machine (VM) is a great way to run multiple operating systems on a single computer, test software safely, or set up a secure development environment. Whether you’re a student, developer, or IT professional, learning how to set up a virtual machine is a useful skill. In this article, we’ll walk you through the basic steps to create a virtual machine.

Here are the steps to follow:

1.Log in to the Azure portal.

Log in to the Azure portal.

2.In the Azure portal, search for and select Virtual machines.

In the Azure portal, search for and select Virtual machines

3.Click +create, select the first one on the list of dropdown.

Click +create, select the first one on the list of dropdown

4.On the basics tab, create a resource group, give it a name, and click OK.

On the basics tab, create a resource group

give it a name, and click OK

5.Give virtual machine a name. Select a region.

Give your virtual machine a name. Select a region

6.Select Availability zone.

Select Availability zone

7.Go to image, in the dropdown select the operating system of choice. Notice the size is available and supported in the selected zone.

Go to image, in the dropdown select the operating system of choice. Notice the size is available and supported in the selected zone

8.In the administrator account section, add a username and a password.

add a username and a password

9.In the public inbound ports, select allow selected ports. Go to select inbound ports and select HTTP(80). Confirm the licensing by checking the box.

In the public inbound ports, select allow selected ports. Go to select inbound ports and select HTTP(80). Confirm the licensing by checking the box

10.Go to monitoring tab, on the boot diagnostics, select disable.

Go to monitoring tab, on the boot diagnostics, select disable

11.Give your virtual machine a tag.

Give your virtual machine a tag

12.Review + create.

Review + create

13.Wait till validated, and then CREATE.

Wait till validated, and then CREATE

14.Go to resource.

Go to resource

15.Go to the public IP address, click on it, drag the slider out to increase the timeout from 4 minutes to 30 minutes, click on SAVE.

public IP address

increase idle timeout and save

16.Connect to the virtual machine. Click on CONNECT.

connect

17.Click on download RDP file.

download rdp file

18.Go to your downloads and open the file. Click connect.

click connect

19.Input username and password used while creating the virtual machine and click OK.

Input username and password used while creating the virtual machine and click OK

20.Wait till it opens. On the choose privacy settings for your device popup message, click accept.

click accept

Ladies and Gentlemen, we have our virtual machine.

Vm

Top comments (2)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Welldone

Some comments may only be visible to logged-in visitors. Sign in to view all comments.