Last active
April 8, 2019 21:34
-
-
Save michaelwsherman/8d763fdfcafb1e5fb57ad2be15836967 to your computer and use it in GitHub Desktop.
Resize a stopped VM.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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