Microsoft Azure Tutorials

How To Create An Azure Virtual Machine – Lab1

In this tutorial you will learn how to create an Azure Virtual machine using Window Server 2022 Datacenter image and learn how to connect to the virtual machine using RDP.

Task Details

  1. Sign to Azure Portal.

  2. Create an Azure Virtual Machine.

  3. Understand deployment details.

  4. RDP into the virtual machine

  5. Test the created virtual machine.

Task 1: Login to Azure Portal

  1. Open a browser tab and go to the Azure portal using URL
  2. Sign in with your username and password on azure portal.

Task 2: Create A Virtual Machine

1. There are a few options you can locate the Virtual machines afterwards click on the Virtual machine’s menu in the Left panel. You can also use the search bar at the top to find the Virtual Machines page or you can use the Virtual machines icon right Infront of you.

2. If you see any error in the page, wait a few minutes and refresh the page.

3. Now start by clicking on the Create button and then click on Azure virtual machine.

4. Now on the Basic tab

    • Subscription: Leave it default selected.
    • Resource Group: Click Create New and name it AzureLab.


    • Virtual Machine Name: Enter a VM name.
      • Ex: AzureVM01
    • Region: Choose a Region (US) East US or
      • if this is a trial you may have to select different regions to see if you have available size packages in my case, I had to select Australia East.
    • Availability Options: Leave availability zone as default
    • Security Type: Leave it as Standard.
    • Image: Choose Image – Window Server 2022 Datacenter: Azure Edition – Gen2
    • Size: Click on the drop down and select a size for your virtual machine.

      • Enter Username
        • Ex: Lab1
      • Enter Password & Confirm Password (Password should follow the format given in Azure)

    • Configure INBOUND PORT RULES
      • Public inbound ports: Choose Allow selected ports
      • select inbound rule HTTP, HTTPS, SSH and RDP from dropdown.
    • click on Next:Disks >

5. Now on the Disks tab.

    • OS disk Type: Select Standard SSD

    • Click on Next : Networking >

6. Now on the Networking tab.

      • Leave Networking as default, there is no need to change anything.
      • Click on Next : Management >

7. Now on the Management tab.

  • Monitoring :
    • Boot diagnostics: Set to Disable.
    • Click on Next : Advanced >

8. Now on the Advanced tab.

    • Leave Management as default, there is no need to change anything.
    • Click on Next : Tags >

9. Now on the Tags tab.

  • Tags: You can add tag in Name/Value pair as per your understanding.
      • Name : Virtualmachines
      • Value : AzureLab


    • Click on Next : Review + Create >
  • Next: Review + Create
    • If you see this “Validation passed” message on top of the screen, that means you have configured the virtual machine successfully or if you see any error message, then you will need to review your settings.


    • Click on Create >Button

  • Now you can see message Deployment is in progress:

    • Once you see the message Your deployment is complete your virtual machine is ready. Afterwards click on Go to Resource.

  • Now you can review all Deployment Details. Understand all the resources that got created.

Task 3: RDP into Virtual Machine

  1. Start from the Home page and click on Button Virtual Machines
  2. You can see your virtual machine in the list, click on your VM and you can see virtual machine details on your screen.
  3. Click on Connect dropdown and select RDP.
  4. Click on Download RDP File.
  5. Open and run the RDP file and click connect.
  6. Enter the username and password you have provided and click ok.
  7. Click Yes on the certificate prompt.
  8. You should have successfully logged into your virtual machine.

Don’t forget to delete your virtual machine when you are done.

I hope this article was helpful, if you have any questions, please feel free to contact me. If you would like to be notified of when I create a new post, you can subscribe to my blog alert.

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.