Create a Windows virtual machine with the Azure portal

Azure virtual machines can be created through the Azure portal. This method provides a browser-based user interface for creating and configuring virtual machines and all related resources. This Quickstart steps through creating a virtual machine using the Azure portal.

If you don't have an Azure subscription, create a free account before you begin.

Log in to Azure

Log in to the Azure portal at

Create virtual machine

  1. Click the New button found on the upper left-hand corner of the Azure portal.

  2. Select Compute from the New blade, select Windows Server 2016 Datacenter from the Compute blade, and then click the Create button.

  3. Fill out the virtual machine Basics form. The user name and password entered here is used to log in to the virtual machine. For Resource group, create a new one. A resource group is a logical container into which Azure resources are created and collectively managed. When complete, click OK.

    Enter basic information about your VM in the portal blade

  4. Choose a size for the VM and click Select.

  5. On the settings blade, select Yes under Use managed disks, keep the defaults for the rest of the settings, and click OK.

  6. On the summary page, click Ok to start the virtual machine deployment.

  7. To monitor deployment status, click the virtual machine. The VM can be found on the Azure portal dashboard, or by selecting Virtual Machines from the left-hand menu. When the VM has been created, the status changes from Deploying to Running.

Connect to virtual machine

After the deployment has completed, create a remote desktop connection to the virtual machine.

  1. Click the Connect button on the virtual machine blade. A Remote Desktop Protocol file (.rdp file) is created and downloaded.

    Portal 9

  2. To connect to your VM, open the downloaded RDP file. If prompted, click Connect. On a Mac, you need an RDP client such as this Remote Desktop Client from the Mac App Store.

  3. Enter the user name and password you specified when creating the virtual machine, then click Ok.

  4. You may receive a certificate warning during the login process. Click Yes or Continue to proceed with the connection.

Delete virtual machine

When no longer needed, delete the resource group, virtual machine, and all related resources. To do so, select the resource group from the virtual machine blade and click Delete.

Next steps

Install a role and configure firewall tutorial

Explore VM deployment CLI samples