From the course: Google Cloud Associate Cloud Engineer Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Launching a compute instance using the console and gcloud

Launching a compute instance using the console and gcloud - Google Cloud Tutorial

From the course: Google Cloud Associate Cloud Engineer Cert Prep

Launching a compute instance using the console and gcloud

- Launching a compute instance using the console and gcloud. Okay, so first I'm going to create a virtual machine using gcloud. So I'm in Cloud Shell here, and first I'll type gcloud config set compute region to set my default region for compute engine. Now I'm going to set also the default compute zone as us east4-c. And now I'm ready to create my instance. I'll do so with the command gcloud compute instances create, and then the compute instance name, the image family, and the project I'm deploying this to. I'm basically leaving all the other configurations with their default values. So I should already have my instance. And if I now go to the console and navigate to Compute Engine and VM instances, I can see here the instance that I just created, called example instance, and the internal IP and external IP. By default, an instance will get an external IP. Let's now create another instance with the console. So this is a more guided and graphical experience, of course. So here I can…

Contents