DEV Community

joseph4real
joseph4real

Posted on

How to Add a Data Disk to a Virtual Machine and Initialize it for use

The blog shows how to create a data disk and add it to the Virtual Machine.
a. Create a VM with the following project details below.

Image description
b. When development is complete, click go to resource.

Image description

c. Click Disks under Settings, you will see only OS disk, no data disk, click on “plus sign create and attach a new disk” to create data disk.

Image description
d. Enter disk name, choose standard SSD and size you want, click save.

Image description

e. You remotely connect to the Virtual Machine Project6VM to initialize the disk and make it usable, by inputting the Virtual Machine public IP and click connect, the desktop window appears after login.

Image description
f. Go to disk management of the newly open VM by right clicking this PC and select manage.

Image description
g. The new disk will be auto initialized as Disk2, but unallocated.

Image description

h. Format the disk2 by creating a new volume, to make it useable.

Image description
i. The capture below show the data disk is now ready for use.

Image description

Top comments (0)