Created
April 27, 2022 00:29
-
-
Save josepsmartinez/600867d5245248cc8715fe5b8a00afca to your computer and use it in GitHub Desktop.
gcloud zone of instance
This file contains hidden or 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
# https://techoverflow.net/2019/04/01/how-to-find-zone-of-google-cloud-vm-instance-on-command-line/ | |
gcloud compute instances list --filter='name="${INSTANCE_NAME}"' --format 'get(zone)' | rev | cut -d/ -f1 | rev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment