gcloud compute instances create web-server --zone us-central1-a --machine-type e2-micro

Category: Google Cloud & Workspace

gcloud compute instances create web-server --zone us-central1-a --machine-type e2-micro

Create a minimal VM instance

Provisions a virtual machine named web-server in zone us-central1-a using the cheap e2-micro shared-core machine type. Without --image-family it defaults to a recent Debian image. Add --tags http-server now so firewall rules can target this VM later.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.