Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Virtual compute instance in terminal problem

This is the code:
gcloud compute instances create gcelab2 --machine-type e2-medium --zone=$ZONE
ERROR: (gcloud.compute.instances.create) could not parse resource []

this is not working for us-west1-b zone.


Somebody is facing this issue, finally I got the solution for the new cloud terminal syntax.

Ans:
gcloud compute instances create gcelab2 --machine-type e2-medium --zone='us-west1-b'
Created [https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-03-6fba5558b812/zones/us-west1-b/instanc...].
NAME: gcelab2
ZONE: us-west1-b
MACHINE_TYPE: e2-medium
PREEMPTIBLE:
...

Solved Solved
0 2 2,044
1 ACCEPTED SOLUTION

Thanks for the solution.

View solution in original post

2 REPLIES 2
Top Labels in this Space