DEV Community

Cover image for HOW TO CREATE A WINDOWS VIRTUAL MACHINE IN AZURE.
Simeon Alikali
Simeon Alikali

Posted on • Updated on

HOW TO CREATE A WINDOWS VIRTUAL MACHINE IN AZURE.

Azure windows virtual machines (VMs) can be created through the Azure portal.
If you don't have an Azure account, you can create a free account here https://azure.microsoft.com/free/?WT.mc_id=A261C142F

follow the steps below to create your windows 10 virtual machine.
Now that you have created your azure subscription, sign in to the azure portal https://portal.azure.com/ using your Email and Password.

CREATE YOUR VIRTUAL MACHINE

  1. Enter virtual machines in the search bar.

  2. Select "virtual machines" from the search results.

Image description

  1. In the Virtual machines page, click Create, select azure virtual machines. The Create a virtual machine page opens.

Image description

PROJECT DETAILS
In this category we have the subscription and resource group.

  1. Azure subscription.

In Azure, subscriptions are a unit of management, billing, and scale. With azure subscription you will have access to make use of azure resources and services.

2 Resource group
Resource groups are simply groupings of resources. When you create a resource, you’re required to place it into a resource group. if you don't have an existing resource group you can click create new to create one.

Image description

INSTANCE DETAILS

  1. Give your virtual machine a name.

  2. Select the region you want your virtual machine to be.

A region is a geographical area on the planet that contains at least one, but potentially multiple datacenters that are nearby and networked together with a low-latency network.

  1. click on the availability option and availability zone. In azure, a region can consist up to three availability zones.

Image description

  1. select your security type.

  2. Select window 10 pro for the image.

Image description

An image is an operating system. It has all the instructions and settings needed to set up a computer.

  1. Select the size of your virtual machine, click all sizes. Leave the other default.

Image description

ADMINISTRATOR ACCOUNT

  1. Under Administrator account, provide a username, such as Exceluser and a password. The password must be at least 12 characters long and meet the defined complexity requirements.

Image description

Inbound Port Rules
On the inbound port rules section, select "Allow selected ports" and then select RDP (3389). This port will give you remote access to your physical work desktop computers.

Image description

Click on "Next: Disks>" to go to the Disk page

Image description

Disk
Azure VMs have one operating system disk and a temporary disk for short-term storage. You can attach additional data disks. The size of the VM determines the type of storage you can use and the number of data disks allowed.

1) On the Disk page click on the OS disk type and select Standard SSD or any disk type of your choice. Leave other as default.

2) Leave the networking, management, monitoring and advanced pages as default. Skip to the Tag page.

Image description

Tag
Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.
1) Give your tag a name.

Image description

2) Next, click on Review+create.

Image description

3) After the validation run you will see an example summary of the estimated costs.

Image description

4) After validation runs is successfully passed, select the Create button at the bottom of the page.

Image description

5) After deployment is complete, select Go to resource.

Image description

Connect to Your Windows Virtual Machine.
Create a remote desktop connection to the virtual machine. These directions tell you how to connect to your Windows 10 operating system.

1) On the overview page of your virtual machine click "Connect".

Image description

2) Connect with RDP, leave the default settings and click the download RDP file.

Image description

3) Open the downloaded RDP file and click "connect".

Image description

4) Input your username, password and click ok as the case may be.

Image description

5) Click yes to the prompt.

Image description

Welcome!!! You are connected to your Windows 10 Pro.

Image description

Delete resources
When no longer needed, you can delete the resource group, virtual machine, and all related resources.

1) On the Overview page for the VM, select the Resource link.

2) At the top of the page, select Delete.

Image description

3) A page will open warning you that you are about to delete resources.

4) Make the necessary choice and click delete.

Image description

I hope this will guide you in creating your Windows 10 virtual machine.
Regards

Top comments (0)