Attach a managed data disk to a Windows VM - Azure - Azure Virtual Machines (2024)

  • Article

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. The size of the VM determines how many data disks you can attach. For more information, see Sizes for virtual machines.

Add a data disk

  1. Sign in to the Azure portal.
  2. Search for and select Virtual machines.
  3. Select a virtual machine from the list.
  4. On the Virtual machine pane, select Disks.
  5. On the Disks pane, select Create and attach a new disk.
  6. In the drop-downs for the new disk, make the selections you want, and name the disk.
  7. Select Save to create and attach the new data disk to the VM.

Initialize a new data disk

  1. Connect to the VM.

  2. Select the Windows Start menu inside the running VM and enter diskmgmt.msc in the search box. The Disk Management console opens.

  3. Disk Management recognizes that you have a new, uninitialized disk and the Initialize Disk window appears.

  4. 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.

  5. The new disk appears as unallocated. Right-click anywhere on the disk and select New simple volume. The New Simple Volume Wizard window opens.

  6. Proceed through the wizard, keeping all of the defaults, and when you're done select Finish.

  7. Close Disk Management.

  8. A pop-up window appears notifying you that you need to format the new disk before you can use it. Select Format disk.

  9. In the Format new disk window, check the settings, and then select Start.

  10. A warning appears notifying you that formatting the disks erases all of the data. Select OK.

  11. When the formatting is complete, select OK.

Next steps

Feedback

Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.

Submit and view feedback for

Attach a managed data disk to a Windows VM - Azure - Azure Virtual Machines (2024)

FAQs

Attach a managed data disk to a Windows VM - Azure - Azure Virtual Machines? ›

The size of the virtual machine determines how many data disks you can attach to it and the type of storage you can use to host the disks.

Which VM setting determines how many managed data disks can be attached to a VM? ›

The size of the virtual machine determines how many data disks you can attach to it and the type of storage you can use to host the disks.

When you add a data disk to an Azure virtual machine? ›

Add a data disk

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.

How to attach a VM disk to another VM? ›

(This is the equivalent of connecting a physical disk to a physical machine.) Go to VM > Settings > Hardware > Add, choose to add an existing virtual disk, and select the corresponding . vmdk file from the other VM that you want to use. The VM might need to be powered off first.

How do I add disk space to Azure VM? ›

Resize a managed disk in the Azure portal

In the left menu under Settings, select Disks. Under Disk name, select the disk you want to expand. In the left menu under Settings, select Size + performance. In Size + performance, select the disk size you want.

What is the maximum number of data disks allowed to be attached to a VM? ›

Although the absolute maximum number of data disks that can be attached to a virtual machine is 64, the type and size of a virtual machine dictates the maximum number of data disks that can be attached, as summarized here: General-purpose: A , B , and D series VM.

How many disks can be attached to Azure VM? ›

For Azure managed disks:
ResourceLimit
Standard managed disks50,000
Standard SSD managed disks50,000
Premium SSD managed disks50,000
Premium SSD v2 managed disks1,000
6 more rows
May 23, 2023

What type is created when you add a data disk to an Azure virtual machine? ›

When you add a data disk to an Azure Virtual Machine (VM), the type of drive that is created is a Virtual Hard Disk (VHD). Azure uses VHDs to represent the storage for data disks attached to VMs.

What are Azure virtual machines disks stored as ___? ›

Virtual machines also can have one or more data disks, that are also stored as VHDs.

Which type of Azure storage should be used to store the data disks of the virtual machine? ›

Azure Disk Storage

It is primarily used to provide high-performance data storage for virtual machines. Azure disks are available in Standard HDD, Standard SSD, Premium SSD and Ultra Disk.

How do I connect my VM to my VM? ›

To connect to a VM instance by using IAP Desktop, do the following:
  1. In IAP Desktop, select Profile > Add project.
  2. Enter the ID or name of your project, and click OK.
  3. In the Project Explorer window, right-click the VM instance you want to connect to and select Connect.

How do I add an unmanaged disk to my Azure VM? ›

In the Azure portal, open the Disks blade for the new repair VM that you just created. Select + Add data disk. On the Attach Unmanaged Disk page, select Existing blob as the Source type. Beneath Source blob, select Browse, and then browse to select the OS disk copy that you created earlier.

How do I access my VM from another device? ›

Here are the general steps to follow: Ensure that the virtual machine is running on the host computer. Find the IP address of the host computer where the virtual machine is running. Install the VMware Remote Console (VMRC) or the VMware Workstation application on the remote computer.

How do I monitor disk space on Azure VM? ›

Additional information:Go to the Azure portal and navigate to the virtual machine scale set that you want to check. Click on the "Instances" tab to view the list of instances in the scale set. Select an instance from the list and click on the "Disks" tab to view the list of disks attached to the instance.

How do I allocate disk space to my virtual machine? ›

Solution:
  1. First select the VM in the 'Table' view of the VM management tab. Select the update button beneath the table.
  2. In the 'Update VM' dialog, scroll down to the disk section. ...
  3. Increase the disk size to the desired size. ...
  4. At this point, the disk has been expanded. ...
  5. Now you should see the space.
Mar 30, 2023

Which type of Azure resource is required to configure managed disk encryption? ›

Azure Disk Encryption requires an Azure Key Vault to control and manage disk encryption keys and secrets. Your key vault and VMs must reside in the same Azure region and subscription. For details, see Creating and configuring a key vault for Azure Disk Encryption.

How many managed identities can you assign to a VM? ›

Note: The lifecycle of the managed identity is tied to the lifecycle of the associated VM and each virtual machine can have only one system-assigned managed identity.

What does the VM size determines the number of? ›

The VM size determines the amount of compute resources (like CPU, GPU, and memory) that are made available to the VM.

What does the VM size determines the number of in Azure? ›

The size of vm specifies only the number of cores it contains and the cost is also calculated by the number of cores.

Which option allows the use of multiple virtual machine data disks? ›

Azure shared disks is a feature for Azure managed disks that allow you to attach a managed disk to multiple virtual machines (VMs) simultaneously. Attaching a managed disk to multiple VMs allows you to either deploy new or migrate existing clustered applications to Azure.

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 5955

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.