DEV Community

Simeon Alikali
Simeon Alikali

Posted on

How to Create and attach a data disk to the VM.

How to create data disk in azure

  • Sign in to the Azure portal.
  • Search for and select Virtual machines.
  • On the Virtual machine pane under setting, select Disks.

Image description

  • On the Disks page, select Create and attach a new disk.
  • In the drop-downs lists for the new disk, make the selections you want, and name the disk.
  • click apply to create the disk.

Image description

Initialize a new data disk

  • Connect to the VM (RDP into your vm)
  • Right click the Windows Start menu inside the running VM and click disk management. The Disk Management console opens.

Image description

  • Disk Management recognizes that you have a new, uninitialized disk and the Initialize Disk window appears.
  • Select OK to initialize it.

Image description

  • The new disk appears as unallocated. Right-click anywhere on the disk and select New simple volume.

Image description

  • The New Simple Volume Wizard window opens,Proceed through the wizard, keeping all of the defaults, and when you're done select Finish.

Image description

  • Close Disk Management.

  • A pop-up window appears notifying you that you need to format the new disk before you can use it. Select Format disk.

  • When the formatting is complete, select OK.

View your new Data Disk
Inside the running VM, click file explorer.
click this PC

Image description

in this PC page you will see your new disk with the name new volume(f).

Image description

Renaming the data disk
You can decide to personalize it be renaming the disk.

  • Right click on the disk, click show more options.

Image description

  • Click rename.

Image description

  • Type in the new name and strike enter on your keyboard

Image description

there you have the new name!!!

we can decide to save a file into our new data disk
let's try it out

Image description

Wao, here we have them.

PEREFECT!!!
WE HAVE OUR NEW DATA DISK CREATED, ATTACHED AND INITIALIZED.

....I hope this was helpful.

Top comments (0)