Earlier in GCP, we need to migrate manually for resolving the issue. But currently, we have tools for working on migration. So for getting those tools, use the below commands:
gcloud components update
And use the below example command for migrating VM:
gcloud compute instances move my-vm --zone europe-west1-a --destination-zone europe-west1-d
Refer to the below tutorial on GCP Training.