• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

GCP Move Instance to Another Zone

December 13, 2019

Moving a GCP instance to another zone is actually much simpler than initially thought. It’s just a single gcloud command.

gcloud compute instances move instance-name \
--zone us-central1-a \
--destination-zone us-central1-b

gcloud compute instances move instance-name \ --zone us-central1-a \ --destination-zone us-central1-b

A few details about moving to another zone.

  • VM has to be running.
  • You may get a new internal or external IP address
  • Local SSDs are ephemeral, so you can’t move them.
  • When moving between regions, you may have to select a subnetwork.
  • You may have to change GPUs available in the destination if you use them.

Filed Under: Cloud Tagged With: gcloud, gcp, instance, move, sdk, zone

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023