Learn What IT Pros Need to Know About Windows 11 - August 26th at 1 PM ET! Learn What IT Pros Need to Know About Windows 11 - August 26th at 1 PM ET!
Cloud Computing

Attach a Data Disk to a VM in the Azure Portal

Server Hero

In this Ask the Admin, I’ll show you how to attach a data disk to a virtual machine (VM) in the new Azure Management Portal.

Adding an additional disk to an Azure VM was easy and intuitive in the classic Azure management portal, but while the new portal has some benefits, sometimes the endless array of options and sliding panels makes it harder to find basic configuration options.

There are lots of reasons why you might want to attach additional disks to VMs in Azure, but one common situation is the requirement to host Active Directory database files on a volume that doesn’t use write caching. By default, Azure deploys OS volumes with write caching enabled, and this can cause issues, such as data loss, with some applications.

Sponsored Content

Read the Best Personal and Business Tech without Ads

Staying updated on what is happening in the technology sector is important to your career and your personal life but ads can make reading news, distracting. With Thurrott Premium, you can enjoy the best coverage in tech without the annoying ads.

If you’ve never deployed a VM in Azure before, see Deploy VMs Using Azure Resource Manager on the Petri IT Knowledgebase. Azure Resource Manager (ARM) is the default deployment model for provisioning VMs, and other resources, in Azure using the new management portal. For more information on Azure resource groups, see What are Microsoft Azure Resource Groups? on Petri.

Create and attach a data disk to a VM

Before starting, you need to already have a virtual machine deployed in Azure. It doesn’t necessarily need to be running.

  • Log in to the Azure management portal here.
  • In the Azure management portal, click Virtual machines in the list of options on the left.
  • In the Virtual machines pane, click the VM you want to attach a disk to.
  • A dashboard for the VM will appear, and the VM’s Settings panel to the right. In the Settings panel, click Disks under GENERAL.
Adding a disk to a VM in Azure (Image Credit: Russell Smith)
Adding a disk to a VM in Azure (Image Credit: Russell Smith)
  • In the Disks pane, click the Attach new icon. Optionally, you can choose to add an existing disk.
  • In the Attach new disk pane, change the disk parameters to meet your needs. You can choose between standard and premium SSD disk, if your VM size supports it; change the disk size, location, and caching options: None, Read only, and Read/Write.
  • Once you’re done adjusting the settings, click OK at the bottom of the Attach new disk pane.
Adding a disk to a VM in Azure (Image Credit: Russell Smith)
Adding a disk to a VM in Azure (Image Credit: Russell Smith)

Creating and attaching the disk might take a few minutes, and once the task is complete, you should see a notification appear in the top right of the management portal. The new disk will also appear in the Disks pane if you haven’t already closed it.

Adding a disk to a VM in Azure (Image Credit: Russell Smith)
Adding a disk to a VM in Azure (Image Credit: Russell Smith)

In this article, I showed you how to create and attach a new disk to an existing virtual machine in Azure.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.

Register for Advanced Microsoft 365 Day!

GET-IT: Advanced Microsoft 365 1-Day Virtual Conference - Live August 24th!

Join us on Tuesday, August 24th and hear from Microsoft MVPs and industry experts about how to take advantage of Microsoft 365 at a technical level and dive deep into the features and functionality that will make your environment more secure and compliant.

RSVP Now

Sponsored By