Step by step guide in deploying Windows virtual machine in the Azure portal

Francis ChukwuFrancis Chukwu
3 min read

Azure Virtual Machines (VMs) are a powerful, on-demand, scalable computing resource offered by Microsoft Azure. They provide the flexibility of virtualization without the need to purchase or maintain physical hardware, allowing users greater control over their computing environment. This article covers the essential step by step guide on creating a VM through the Azure portal, windows 11 was used for illustration.

Sign in to the Azure portal.

Create virtual machine

Step 2: Select Create Vm

In the Virtual machines page, select Create and then Azure virtual machine. The Create a virtual machine page opens.

Step 3: Subscription

  1. Subscription: Select your Azure subscription.

  2. Resource Group: Choose an existing resource group or create a new one to organize your resources

Step 4: Under Instance details

  1. Name: Enter a unique name for your VM (e.g., MyFirstVM).

  2. Region: Choose the Azure region closest to your users to reduce latency.

  3. Availability Options: For high availability, choose between Availability Zones or Availability Set based on your reliability needs.

  4. Image: Select your VM’s OS (e.g., Windows Server or Linux).

    Step 5: Under Administrator account

  5. provide a username, such as azureuser and a password. The password must be at least 12 characters long

  6. Under Inbound port rules, choose Allow selected ports and then select RDP (3389) or HTTP (80) from the drop-down b

    Step 6: VM Sizes

  7. Size: Pick a VM size based on your application’s performance needs. Azure provides recommendations, but you can also view all available sizes by clicking "See all sizes"

    Step 7: Confirm and Review

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

    Step 8: Validation Passed

  9. After validation runs, select the Create button at the bottom of the page.

    Step 9: After Deployment

  10. After deployment is complete, select Go to resource

    Step 10: Connect to virtual machine

  11. On the overview page for your virtual machine, select the Connect > RDP.

  12. In the Connect with RDP tab, keep the default options to connect by IP address, over port 3389, and click Download RDP file

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

  14. In the Windows Security window, Type the username, enter the password you created for the virtual machine, and then click OK

  15. You may receive a certificate warning during the sign-in process. Click Yes or Continue to create the connection

  16. View the welcome page

Step 11: Clean up resources

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 group link.

  2. At the top of the page for the resource group, select Delete resource group.

  3. A page will open warning you that you are about to delete resources. Type the name of the resource group and select Delete to finish deleting the resources and the resource group.

    Conclusion

    Deploying an Azure Virtual Machine provides a robust, flexible foundation for running applications, testing environments, and extending your infrastructure. With Azure's rich selection of VM configurations and easy-to-use management tools, you can create a virtual machine that meets your exact requirements in just a few steps. By following this guide, you now have a VM ready to use and can take advantage of Azure’s monitoring, backup, and scalability features to optimize your resources. Start experimenting with your VM, and feel free to explore additional Azure services that can enhance your application’s performance and resilience.

1
Subscribe to my newsletter

Read articles from Francis Chukwu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Francis Chukwu
Francis Chukwu