Create a VM with Attached Disk
Create a VM with an additional persistent disk for storage.
Go to your google cloud console.
Then, click on Compute Engine and click create instance.
Name the instance and select region.
Click on create.
Click on the instance that you have created.
Click on Edit
Scroll down you will be able to see Additional Disks
Here, click on ADD NEW DISK, name the disk, select disk source type as per requirement (here, I’m selecting Standard persistent disk)
Here, we can also define the size, I’m creating disk size of 10 GB.
Click on save.
So, we have added persistent disk to our virtual machine successfully.
Great job adding extra storage to your VM! Next up, we’ll explore launching a VM from custom and predefined images, unlocking even more power and flexibility in GCP. Stay tuned for more hands-on insights!