Complete the code to specify the boot disk image for a new VM instance.
gcloud compute instances create my-instance --image [1]The option debian-11-bullseye-v20230606 is a valid public boot disk image name in GCP. It specifies the Debian 11 image for the VM boot disk.
Complete the code to create a boot disk from a custom image in a specific project.
gcloud compute disks create my-boot-disk --image [1] --image-project my-projectThe option custom-image-123 represents a custom image name created in the project 'my-project'. This is used to create a boot disk from that custom image.
Fix the error in the command to create a VM with a boot disk image.
gcloud compute instances create vm-1 --boot-disk-image [1]
The correct flag is --image, not --boot-disk-image. But since the blank replaces the image name only, the correct value is the image name debian-11-bullseye-v20230606. The command should be gcloud compute instances create vm-1 --image debian-11-bullseye-v20230606.
Fill both blanks to create a VM instance with a boot disk from a specific image and project.
gcloud compute instances create vm-2 --image [1] --image-project [2]
The --image flag should be set to the custom image name custom-image-456, and the --image-project flag should be set to the project ID my-project-123 where the image is stored.
Fill all three blanks to create a boot disk and specify the disk type.
gcloud compute disks create [1] --image [2] --type [3]
The disk name is boot-disk-1, the image is debian-11-bullseye-v20230606, and the disk type is pd-ssd for a fast solid-state drive.