gcloud compute instances stop web-server --zone us-central1-a

Category: Google Cloud & Workspace

gcloud compute instances stop web-server --zone us-central1-a

Stop a running VM instance

Shuts the VM down cleanly so you stop paying for compute time, while persistent disks and static IPs are kept and billed separately. The instance remains in the project and can be restarted with gcloud compute instances start. Data on standard persistent disks survives a stop.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.