• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

GCP VM Display Label

July 12, 2023

Here’s how to display GCP VM labels.

Display all labels.

gcloud compute instances describe VM --zone ZONE --project PROJECT_ID --format="value(labels)"

gcloud compute instances describe VM --zone ZONE --project PROJECT_ID --format="value(labels)"

Display a specific label.

gcloud compute instances describe VM --zone ZONE --project PROJECT_ID --format="value(labels.key)"

gcloud compute instances describe VM --zone ZONE --project PROJECT_ID --format="value(labels.key)"

Filed Under: Cloud Tagged With: display, gcp, labels, vm

  • Home
  • About
  • Search

Copyright © 2023