March 2019
Beginner to intermediate
778 pages
34h 20m
English
In some events, it may be desired to migrate a Compute Engine instance to another zone. There are a few strategies to achieve this, but the simplest is to allow Google Cloud to perform the operation for you in an automated manner.
To have Google Cloud perform the migration, simply use the gcloud compute instances move command. As an example, we can move our hello-gce instance to us-east1-c, as follows:
gcloud compute instances move --zone=us-east1-b \ hello-gce --destination-zone=us-east1-c
This will trigger a process of creating snapshots of persistent disks, moving copies of those disks to the new zone, and recreating the instance. There are a number of limitations when performing this operation, including regional ...
Read now
Unlock full access