Setting Up a Windows Server VM in Azure

screenshot 2025 12 20 162307
  • Cloud computing involves creating, managing, and scaling virtual resources on demand, eliminating the need for physical hardware. In a previous guide, we looked at how to set up a Windows Server locally using Hyper-V.
  • While this approach is useful for learning and testing in a contained environment, it relies entirely on your local machine’s(Your Laptop) resources and configuration. Hyper-V is a virtualization tool that represents an on-premises(Private Cloud) setup, where the infrastructure is managed and maintained manually.
  • Cloud computing takes this a step further by offering virtual infrastructure that runs on remote servers, accessible via the internet, and managed by a cloud provider.
  • In this documentation, we shift from on-premise virtualization to cloud-based deployment(Public Cloud) using Microsoft Azure. Azure allows you to quickly create, configure, and manage Windows Server virtual machines without needing to worry about the underlying hardware.
  • Azure offers flexibility, scalability, and integrated services that make it ideal for development, testing, or production use. For this documentation, we will be building for testing and at the end of this guide, you’ll know how to deploy a Windows Server VM on Azure.

Prerequisites:

  • An active Microsoft Azure account with a valid subscription
  • Access to the Azure Portal
  • An existing resource group, virtual network, and default subnet
  • Basic familiarity with Windows Server.

Steps:

  1. Search for “Virtual Machine”, click on “Create”, then select your subscription and choose the resource group you previously created.
    screenshot 2025 12 20 160603
  2. Enter the name of your virtual machine (VM), choose a region that corresponds to the data centre where your server will be deployed, and select “Windows Server 2025 Datacenter” as the image.
    screenshot 2025 12 20 160750
  3. Enter the credentials for the administrator account, including the username and password that will be used to log in to the Windows Server.
    screenshot 2025 12 20 160859

    • For this article, the server is intended for Therefore, you can allow Remote Desktop Protocol (RDP) on port 3389 by selecting it under the inbound port rules. Once selected, click “Next” to continue.
  4. Note: In real-world or production environments, exposing port 3389 directly to the internet poses a serious security risk.
    screenshot 2025 12 20 161029
  5. Under the Operating System Disk section, select the default image (127 GB), choose “Premium SSD” as the disk type, and ensure the key management option is set to use a platform-managed key. Once configured, proceed to the Networking tab.
    screenshot 2025 12 20 161239
  6. In the Networking section, select the virtual network you previously created along with its associated subnet. Then, create a new public IP address to assign to your virtual machine.
    screenshot 2025 12 20 161347screenshot 2025 12 20 161447
  7. In the Management section, leave all settings at their default values and hit Next to proceed to the Monitoring tab.
    screenshot 2025 12 20 161637
  8. In the Monitoring section, leave all settings at their default values and hit Next to proceed to the Advanced tab
    screenshot 2025 12 20 161858
  9. In the Advanced section, leave all settings at their default values and hit Next to proceed to add your tags if you have any.screenshot 2025 12 20 162019
  10. Add your tag, under the name, you can select the owner, and for the value, input your name.
    screenshot 2025 12 20 162145
  11. After reviewing and creating the server, wait for the deployment to complete.Once done, you’ll see the server along with all associated resources, such as the network security group.
    screenshot 2025 12 20 162307
  12. Once deployment is complete, go to your virtual machine and click on “Connect” to access it.
    screenshot 2025 12 20 162402
  13. After clicking “Connect”, download the RDP file to begin the remote desktop connection.screenshot 2025 12 20 162520
  14. Open the downloaded RDP file. When the connection prompt appears, click “Connect” and accept any permission requests to proceed.
    screenshot 2025 12 20 162631
  15. You will be prompted to enter the username and password you set during the VM creation. After entering the credentials and clicking “Login,” your Windows Server will open.
    screenshot 2025 12 20 162819

Conclusion
In this guide, I demonstrated how to create a basic Windows Server on Azure. Please note that this setup is intended for testing purposes, which is why many options were left at their default settings.

If you’re deploying a server for a business or organization, it’s important to carefully review and configure each setting based on your specific security, performance, and compliance requirements.

For simple testing scenarios, you can follow this documentation to get your server up and running quickly.

Reminder: Don’t forget to delete your virtual machine and related resources once You’re done to avoid unexpected charges.

Leave a Comment