creating new compute instance fails with unknown zone error for 'asia-south1-c'

2,331 views
Skip to first unread message

Harsh Bhikadia

unread,
Dec 12, 2019, 9:15:18 AM12/12/19
to Google Cloud Developers

I am new to GCP so bear with me and forgive my ignorance.

I want to create a new compute instance at asia-south1 region, I am getting Unknown zone error. Following the command that I executed (asia-south1-c is my default zone).


$ gcloud compute instances create app --machine-type=f1-micro
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - Invalid value for field 'zone': 'asia-south1-c'. Unknown zone.


The same error is caused by the UI console. I can see the zone available in gcloud compute zones list. Don't know what is wrong.


PS: My project was created via Firebase, I created a fresh project but same issue with that as well. I tried successfully with zone asia-southeast1-a and us-west1-a though.

Roger Sels

unread,
Dec 12, 2019, 12:53:19 PM12/12/19
to Harsh Bhikadia, Google Cloud Developers
Just tried this command which succeeded.

Tonto:~$ gcloud compute instances create my-small-instance --machine-type f1-micro --zone asia-south1-c


NAME               ZONE           MACHINE_TYPE  PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP    STATUS
my-small-instance  asia-south1-c  f1-micro                   10.160.0.2   34.93.229.148  RUNNING


--
You received this message because you are subscribed to the Google Groups "Google Cloud Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-dev/ccc0fcbc-3a7b-4a9c-a6b0-c83d31e8169a%40googlegroups.com.

EZEKIAS BOKOVE

unread,
Dec 12, 2019, 12:53:19 PM12/12/19
to Google Cloud Developers
Hello. Use this method
$ gcloud config set compute/zone asia-south1-c

$ gcloud compute instances create name-instance --machine-type=f1-micro
Reply all
Reply to author
Forward
0 new messages