Skip to content

Instantly share code, notes, and snippets.

@michaelwsherman
Last active April 8, 2019 21:34
Show Gist options
  • Save michaelwsherman/8d763fdfcafb1e5fb57ad2be15836967 to your computer and use it in GitHub Desktop.
Save michaelwsherman/8d763fdfcafb1e5fb57ad2be15836967 to your computer and use it in GitHub Desktop.
Resize a stopped VM.
export INSTANCE_NAME="my-instance"
export ZONE="us-west1-b"
export NEW_MACHINE_TYPE="n1-standard-8"
gcloud compute instances set-machine-type $INSTANCE_NAME \
--machine-type=$NEW_MACHINE_TYPE \
--zone=$ZONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment