Attach a managed data disk to a Windows VM by using the Azure portal

You can create a remote desktop connection to a virtual machine (VM) running Windows in Azure.

To connect to a Windows VM from a Mac, you will need to install an RDP client for Mac such as Microsoft Remote Desktop.

How to connect using Remote Desktop and sign on to an Azure virtual machine running Windows

Prerequisites: Connect to the Virtual Machine

Add a data disk

In Azure, do the following steps to add a disk to virtual machine

  1. From the Azure Portal, Navigate: Portal Home –> Virtual Machines –> select virtual machine
  2. In the left menu under Settings, select Disks.
  3. On the Disks pane, select Create and attach a new disk.

4. In the drop-downs for the new disk, make the selections you want, and name the disk.

5. Select Save to create and attach the new data disk to the VM.

Initialize a new data disk

In Azure, do the following steps to initialize a new disk to virtual machine

  1. From the Azure Portal, Navigate: Portal Home –> Virtual Machines –> select virtual machine
  2. Connect to the VM.
  3. Select the Windows Start menu inside the running VM and enter diskmgmt.msc in the search box. The Disk Management console opens.
  4. Disk Management recognizes that you have a new, uninitialized disk and the Initialize Disk window appears.
  5. Verify the new disk is selected and then select OK to initialize it.
  6. The new disk appears as unallocated. Right-click anywhere on the disk and select New simple volume. The New Simple Volume Wizard window opens.
  7. Proceed through the wizard, keeping all of the defaults, and when you’re done select Finish.
  8. Close Disk Management.
  9. A pop-up window appears notifying you that you need to format the new disk before you can use it. Select Format disk.
  10. In the Format new disk window, check the settings, and then select Start.
  11. A warning appears notifying you that formatting the disks erases all of the data. Select OK.
  12. When the formatting is complete, select OK.

Detach a data disk from a Windows virtual machine

In Azure, do the following steps to detach a disk from the virtual machine

  1. From the Azure Portal, Navigate: Portal Home –> Virtual Machines –> select virtual machine
  2. On the Virtual machine pane, select Disks.
  3. In the Disks pane, to the far right of the data disk that you would like to detach, select the X button to detach.
  4. Select Save on the top of the page to save your changes.

The disk stays in storage but is no longer attached to a virtual machine. The disk isn’t deleted.

Back to Home | Expand a Managed disk