Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Google cloud virtual machine through cloud shell

Hii, i’m not able to create a virtual machine due to an error "no default subnetwork was found in the region of the instance"

1 Answers

Try to add some US Zones. Sandbox tends to restrict to certain zones. 

cloud_user_p_f166ebb7@cloudshell:~ (playground-s-11-a759e5fe)$ gcloud compute instances create mytest –zone=us-central1-a

Created [https://www.googleapis.com/compute/v1/projects/playground-s-11-a759e5fe/zones/us-central1-a/instances/mytest].

NAME: mytest

ZONE: us-central1-a

MACHINE_TYPE: n1-standard-1

PREEMPTIBLE:

INTERNAL_IP: 10.128.0.3

EXTERNAL_IP: 34.71.157.182

STATUS: RUNNING

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?