DEV Community

Gbadamosi Tajudeen
Gbadamosi Tajudeen

Posted on

Protocol to adding a data disk drive to the virtual machine running on Windows.

Prerequisites

Sign in to the Azure portal at [https://portal.azure.com]
Create a virtual machine to which you want to add the data disk

Add a Data Disk to virtual machine

Select "Disks" from the menu on the left-hand side of the virtual machine's overview page.
Virtual machine data disk
Click on create and attach new disk" from the menu at the top of the Data Disks tab.
create a data disk

Enter the new data disk the following information in the Add data disk panel:

  • Name: Enter a name for the data disk.
  • Account type: Select the storage account type for the data disk (Standard HDD, Standard SSD, or Premium SSD)
  • Size (GiB): Specify the desired size of data disk needed to be created in Gigabytes Data disk's nomenclature

Click on the "save" button to add the data disk.
The new data disk will be created and attached to the virtual machine. Wait for the process to complete.
save the data disk created
Once the data disk is attached, in the left-hand menu, click on "Connect" to RDP into the virtual machine.
RDP into VM
Once connected to the virtual machine, we need to initialize and format the newly added data disk. The exact steps for disk initialization and formatting in windows operating system running on the virtual machine are:
Open Disk Management through the control panel
Open disk to commence initialization
Right-click on the unallocated disk, select "Initialize Disk," choose the desired disk initialization method, and follow the prompts. After that, right-click on the initialized disk.

Initialize data disk
Select "New Simple Volume," and follow the prompts to format the disk.

Data disk formated
Once the data disk is initialized and formatted, you can start using it to store data within the virtual machine.
Data disk ready to use

Top comments (0)