gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
When running a gcloud command, how do you override the configured zone for just that one…
- User
When running a gcloud command, how do you override the configured zone for just that one time? Add the switch --project YOUR_PROJECT_ID to the command Add the switch -zone DIFFERENT_ZONE to the command run the command gcloud config set zone DIFFERENT_ZONE before you run the command. Add the switch --zone DIFFERENT_ZONE to the command
- Assistant
To override the configured zone just for one gcloud command, add the switch
--zone DIFFERENT_ZONEto the command.So the correct answer is:
Add the switch
--zone DIFFERENT_ZONEto the commandExplanation:
--zoneis the correct flag to specify the zone override temporarily.- Using
gcloud config set zone DIFFERENT_ZONEchanges the default zone globally until changed again. -zoneis not a valid flag.--project YOUR_PROJECT_IDchanges the project, not the zone.