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.
Click on create and attach new disk" from the menu at the top of the Data Disks tab.
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
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.
Once the data disk is attached, in the left-hand menu, click on "Connect" to RDP into the virtual machine.
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
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.
Select "New Simple Volume," and follow the prompts to format the disk.
Once the data disk is initialized and formatted, you can start using it to store data within the virtual machine.
Top comments (0)