Applies to: ✔️ Windows VMs ✔️ Flexible scale sets
This article shows you how to attach a new managed data disk to a Windows virtual machine (VM) by using the Azure portal.
Ní thacaítear leis an mbrabhsálaí seo a thuilleadh.
Uasghrádú go Microsoft Edge chun leas a bhaint as na gnéithe is déanaí, nuashonruithe slándála, agus tacaíocht theicniúil.
Applies to: ✔️ Windows VMs ✔️ Flexible scale sets
This article shows you how to attach a new managed data disk to a Windows virtual machine (VM) by using the Azure portal.
Before you attach disks to your VM, review these tips:
The size of the virtual machine controls how many data disks you can attach. For details, see Sizes for virtual machines.
Follow these steps:
Sign in to the Azure portal.
Search for and select Virtual machines.
Select a virtual machine from the list.
On the Virtual machine pane, select Disks.
On the Disks pane, select Create and attach a new disk.
In the drop-downs for the new disk, make the selections you want, and name the disk.
Select Save to create and attach the new data disk to the VM.
Follow these steps:
Connect to the VM.
Select the Windows Start menu inside the running VM and enter diskmgmt.msc in the search box. The Disk Management console opens.
Disk Management recognizes that you have a new, uninitialized disk and the Initialize Disk window appears.
Verify the new disk is selected and then select OK to initialize it.
Note
If your disk is two tebibytes (TiB) or larger, you must use GPT partitioning. If it's under two TiB, you can use either MBR or GPT.
The new disk appears as unallocated. Right-click anywhere on the disk and select New simple volume. The New Simple Volume Wizard window opens.
Proceed through the wizard, keeping all of the defaults, and when you're done select Finish.
Close Disk Management.
A pop-up window appears notifying you that you need to format the new disk before you can use it. Select Format disk.
In the Format new disk window, check the settings, and then select Start.
A warning appears notifying you that formatting the disks erases all of the data. Select OK.
When the formatting is complete, select OK.