hardgcloud

Add network tags to a Compute Engine instance for firewall rule targeting

command

gcloud compute instances add-tags INSTANCE_NAME --tags TAG1,TAG2 --zone ZONE

also accepted

gcloud compute instances add-tagsgcloud compute instances add-tags INSTANCE_NAME --tags TAG1,TAG2

Test your recall — not just your reading.

Practice with interactive quiz →