Gcloud Config - Set

 

ketan_patel@cloudshell:~$ gcloud config list

[accessibility]
screen_reader = True
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 30
[core]
account = ketan.patel@supernal.aero
disable_usage_reporting = True
[metrics]
environment = devshell

Your active configuration is: [cloudshell-3398]

ketan_patel@cloudshell:~$ gcloud config set project new-user-learning

Updated property [core/project].

ketan_patel@cloudshell:~ (new-user-learning)$ gcloud config list

[accessibility]
screen_reader = True
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 30
[core]
account = ketan.patel@supernal.aero
disable_usage_reporting = True
project = new-user-learning
[metrics]
environment = devshell

Your active configuration is: [cloudshell-3398]



 ketan_patel@cloudshell:~ (new-user-learning)$ gcloud config set compute/zone us-central1

WARNING: us-central1 is not a valid zone. Run `gcloud compute zones list` to get all zones.
Are you sure you wish to set property [compute/zone] to us-central1?

Do you want to continue (Y/n)?  Y

Updated property [compute/zone].
ketan_patel@cloudshell:~ (new-user-learning)$ gcloud config list
[accessibility]
screen_reader = True
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 30
zone = us-central1
[core]
account = ketan.patel@supernal.aero
disable_usage_reporting = True
project = new-user-learning
[metrics]
environment = devshell

Your active configuration is: [cloudshell-1884]
ketan_patel@cloudshell:~ (new-user-learning)$

No comments:

Post a Comment

AppEngine - Python

tudent_04_347b5286260a@cloudshell:~/python-docs-samples/appengine/standard_python3/hello_world (qwiklabs-gcp-00-88834e0beca1)$ sudo apt upda...