DEV Community

Cover image for HOW TO CREATE, ATTACH AND INITIALIZE A DATA DISK TO AN EXISTING WINDOWS 11 VIRTUAL MACHINE ON AZURE
HAFIZ DERE
HAFIZ DERE

Posted on

HOW TO CREATE, ATTACH AND INITIALIZE A DATA DISK TO AN EXISTING WINDOWS 11 VIRTUAL MACHINE ON AZURE

Sign in into your Azure Portal then click on "Virtual Machine"

Image description

To start this project you must have an existing Virtual machine. If you need help creating a Windows 11 VM using Azure Click Here for an in-depth tutorial on how to create one.
Now that you have a VM , click on the VM which you want to create a data disk for.

Image description

On the next side tab , scroll up to settings and click on Disks. Now click on Create and Attach a new Disk

Image description

Image description

Follow the next prompt to input your preferred Data disk name, Storage type, Storage Size and other relevant entities as required by you.

Image description

Click on Apply

Image description

Now wait until you get a confirmation that your data disk has been successfully created attached to your VM and listed under the data disk panel.

Image description

To confirm if this data disk is in fact created, attached and working with the VM . Look for and click on connect on the left menu . Then go ahead and download RDP file

Image description

Double click to open the downloaded file, input your user account information (Username and Password), then click continue twice until your windows VM pops up.

Image description

Having created and attached the data disk , it’s important to know that this disk is not yet allocated until it is being fully initialized onto This PC.

Image description

To initialize the date disk for full use. Click on the windows icon on your VM, then type Disk management into the search bar at the top . Then click on “Create and format hard disk partitions”

Image description

Click Okay on the next pop up menu and then click on the unallocated disk2 to select it . Now right click on the unallocated disk and select New Simple Volume.

Image description

Image description

Click continue on the wizard until you get to finish , click finish to complete the initialization of your data disk . Close the disk management tab, open windows explorer, then "This PC" . There you will find your new data disk labelled as "New Volume (:F)".

Image description

Congratulations , you have successfully created , attached and initialized a new data disk to an existing Windows 11 Virtual Machine.

Top comments (0)