Sign in
Log inSign up
How to create a windows Virtual Machine ( VM)

Photo by Anete Lūsiņa on Unsplash

How to create a windows Virtual Machine ( VM)

Abiodun Eniola's photo
Abiodun Eniola
·Jan 1, 2022·

3 min read

There are different method of creating the virtual machine in Azure. For this tutorial we will be using the Azure portal. The Azure portal provides a browser-based user interface to create VMs and their associated resources.

Step 01 Sign in to your Azure portal

Screenshot (26).png

Step 02 Search Virtual Machine in the search bar and select create

Screenshot (27).png

Step 03 In the project details

  • Choose your subscription (in my own case Azure subscription 1)
  • Create a new resource group, click create new and name it (in my own case myRG)
  • Under Instance details, type myVMachine for the Virtual machine name and choose Windows Server 2022 Datacenter for the Image
  • Choose a region (in my own case Africa (south africa north)
  • Select a desired size (your workflow will determine the type of size to choose)

Screenshot (33).png

Step 04

  • Under Administrator account, enter a username and password. The password must be at least 12 characters long
  • Under Inbound port rules, choose Allow selected ports and then select RDP (3389) from the drop-down.

Leave the remaining defaults and then select the Review + create button at the bottom of the page.

Screenshot (34).png

After deployment is complete, click Go to resource.

Screenshot (35).png

Now let's connect to our virtual machine

We are going to connect to our VM with RDP client.

Step 05 Select the Connect > RDP. in the Connect with RDP page, keep the default options to connect by IP address, over port 3389, and click Download RDP file.

connect.PNG

Screenshot (37).png

  • Open the downloaded RDP file and click Connect when prompted.

Screenshot (38).png

  • When the Windows Security window, select More choices and select Use a different account.

  • Enter your username and password you created for the virtual machine, and then click OK.

  • If there is a certificate warning prompt, Click Yes or Continue to create the connection.

Viola! We are in

Screenshot (1).png

Screenshot (3).png

Let us add some roles and features in our server manager

Step 06 Click add roles and features leave all settings as default and follow the wizard until it gets to server role. under server roles select Web server (IIS) Select include management tools (if applicable) then add features check restart destination server automatically if required then install

Screenshot (4).png

Screenshot (5).png

Screenshot (6).png

Step 07

  • Go to main menu and search Internet information services manager (IIS)
  • Click the > at the left pane
  • Click sites and click default websites
  • right click and select manage websites
  • then select advanced settings
  • Copy a physical path %SystemDrive%/inetpub\wwwroot.

Screenshot (7).png

Screenshot (8).png

Step 08

-Open file explorer and paste the physical path into the search bar

  • right click and create a new document file
  • Open and type few lines of welcome message and save as .html Screenshot (9).png

Screenshot (10).png