1. Home
  2. Training Library
  3. Google Cloud Platform
  4. Courses
  5. Deploying Networking and Compute Resources on Google Cloud Platform

Configuring a VM for Cloud Operations

Start course
1h 21m

This course has been designed to teach you how to deploy network and compute resources on Google Cloud Platform. The content in this course will help prepare you for the Associate Cloud Engineer exam.

Learning Objectives

  • To understand key networking and compute resources on Google Cloud Platform
  • Be able to explain different networking and compute features commonly used on GCP
  • Be able to deploy key networking and compute resources on Google Cloud Platform

Intended Audience

  • Those who are preparing for the Associate Cloud Engineer exam
  • Those looking to learn more about GCP networking and compute features


To get the most from this course then you should have some exposure to GCP resources, such as VPCs and Compute Instances. However, this is not essential.


Before installing the Ops agent, you need to be sure that you are running a supported VM instance in a Google Cloud project, and a supported operating system. Visit the URL on your screen for a complete list of supported instances and operating systems:


You’ll also need credentials on the VM instance that authorize communication with Cloud Logging and Cloud Monitoring. Since Google’s Compute Engine VM instances typically already have the correct credentials by default, this should rarely be an issue.

In addition to the proper credentials, you’ll also have to enable the services for both the Cloud Logging API and Cloud Monitoring API, and you’ll have to ensure that neither the legacy Cloud Logging agent, nor the Cloud Monitoring agent are installed on the VM. 

I do want to mention that there are a few different ways to install the Ops Agent, depending on your environment. For example, you can use gcloud and Agent policies to install agents on a fleet of VMs. More specifically, you use the Google Cloud CLI to create an Agent Policy, which, in turn, installs and manages the agents on all of your VMs.

You can also install and manage agents on your fleet of VMs using automation tools like Ansible, Chef, Puppet, and Terraform.

And then, of course, you can install the Ops Agent on individual VMs, using the Google Cloud CLI or Google Cloud console.

So, depending on your needs, you can use one method, or you can mix and match as necessary.

Before you install the Ops agent, you need to be sure that the VM instance has the credentials that the agent needs, because the agent needs to be able to send monitoring information to Cloud Operations. Generally speaking, this permission is granted via service account credentials that are stored on the VM instance. For an installation on a Compute Engine VM instance on GCP, the default service account on the instance should, by default, have the necessary credentials.

So, with that said, I’m going to show you, in the next lesson, how to install the Ops agent on a GCP compute instance.

About the Author
Learning Paths

Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.

In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.

In his spare time, Tom enjoys camping, fishing, and playing poker.

Covered Topics