ATTACHING A DATA DISK TO AN ALREADY EXISTING WIN 11 PRO VIRTUAL MACHINE IN AZURE

himora22

Seun Okegbola

Posted on April 15, 2024

ATTACHING A DATA DISK TO AN ALREADY EXISTING WIN 11 PRO VIRTUAL MACHINE IN AZURE

In today’s post we will be learning to how to attach a data disk to our Win 11 Pro Virtual machine. We will be working with an already created Win 11 Pro VM, if you do not know how to go about it, just click on the link below to create one and come back and follow this blog.

What are Disks in Azure?

Before attaching a data disk, let's have a brief discussion about disks in Azure.

Disks in Azure are referred to as** Azure Disk Storage**, that provide block-level storage volumes that are managed by Azure and used with its Virtual machines. They are virtualized versions of physical disks you would have in your on-premises servers.

Azure has several types of disks with different performance requirement and prices points.

Ultra Disks: Designed for IO-intensive workloads, offering high throughput and IOPS with the ability to dynamically change performance parameters without restarting Virtual Machines.

Premium SSDs: Suitable for production and performance-sensitive workloads that require consistent low latency and high IOPS.

Standard SSDs: Ideal for web servers, lightly used enterprise applications, and development/test environments.

Standard HDDs: Best for backup, non-critical, and infrequent access scenarios due to their lower cost and performance compared to SSDs.

Apart from the different types of disks, Azure disks have different roles. They are three in number, and they are as follows:

  1. OS Disk: the Operating System disk, this is the Virtual Hard drive that you boot or run your virtual machine from. It holds the operating system and its system files; it is usually labelled as the C: drive by default. The OS disk has a maximum capacity of 4 TB.

  2. Data Disks: These are Virtual Hard drives you can attach to a Virtual machine to store application data or other data you need to keep. You can attach several data disks to a Virtual machine depending on the size of the Virtual machine. They have a maximum capacity of 32 TB per disk.

  3. Temporary Disk: This disk provides temporary storage for applications and processes and is intended to store data such as swap files, application cache, system cache, etc. The data on this disk can be lost during a maintenance event or when you redeploy a Virtual machine. It is usually labelled as the D: drive by default.

You can get more information on these from links below.

Azure Disk Storage overview - Azure Virtual Machines | Microsoft Learn

Overview of Azure managed disks, which handle the storage accounts for you when using VMs.

learn.microsoft.com

Select a disk type for Azure IaaS VMs - managed disks - Azure Virtual Machines | Microsoft Learn

Learn about the available Azure disk types for virtual machines, including ultra disks, Premium SSDs v2, Premium SSDs, standard SSDs, and Standard HDDs.

learn.microsoft.com

https://azure.microsoft.com/en-us/products/storage/disks/

Now that we understand Azure disks let's begin attaching a data disk to the already created Win 11 Pro Virtual Machine.

Step 1: Login to your Azure portal, Search for Virtual Machine in the search bar and Click on Virtual Machines.

Image description

Step 2: Click on your already created Win11 Pro Virtual machine.

Image description

Step 3: Select and click on Disks, under settings towards the left end of your screen.

Image description

Step 4: Once in the disk menu, look for and select Create and attach new disk.

Image description

a. Disk name: Give the disk a name.

b. Storage type: Select from the options in the dropdown menu.

c. Size (GiB): Type the disk size you want.

d. Click Apply at the bottom left of the portal when done.

Image description

Wait for a few minutes for your Data disk to be created. Once this done go to the next step

Step 5: Go to Overview page and Connect to your Windows Virtual Machine

Image description

Step 6: Once your Windows 11 Virtual Machine is up and running,

a. Go to your file explorer.

Image description

b. Go to This PC, you will notice your just created Data disk is not listed amongst the hard drives. You will have to initialize the disk before it is useable.

Image description

Step 7: Initializing the Data disk.

a. Right click the Windows button

b. Select Disk Management from the list that pops up.

Image description

c. Disk Management opens with a prompt ‘You must initialize a disk before Logical Disk Manager can access it’ click ‘OK’.

Image description

d. Scroll down at the bottom half of the Disk Management windows till you get to Disk 2.

e. Right click on Disk 2 where it shows Unallocated and select New Simple Volume.

Image description

f. A Welcome to the New Simple Volume Wizard comes up.

Image description

g. For this exercise keep clicking Next till you finally get to Finish. Now the disk is initialized and is now visible on This PC in file explorer.

Image description

If all these steps were followed correctly you have successfully Create, Attached and Initialized a Data disk in your Win 11 Pro virtual machine. Congratulations and well-done.

💖 💪 🙅 🚩
himora22
Seun Okegbola

Posted on April 15, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related