Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Modify VM Machine Type

I created a VM, please how can I modify the machine type without deleting entire VM?

1 Answers


If VM is still running, use shell script below to stop:

gcloud compute instances stop [vm name]

Run script below to confirm vm has stopped:

gcloud compute instances list

Run script below to modify machine type of vm:

gcloud compute instances set-machine-type [vm name] –zone=[xone name] –machine-type=[new machine-type]

Olu Akin

Remember to start vm instance using gcloud compute instances start [vm name]

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?