Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Filter command not working as described in Chapter 7.5 GCE in and out

The way the video describes the command was throwing an error for me. I was able to work it out though, so only posting this if others have the issue.

[worst@symmetra-01 ~]$ gcloud compute machine-types list –filter="NAME=:f1-micro"

ERROR: (gcloud.compute.machine-types.list) Malformed operator [NAME HERE =:f1-micro].

[worst@symmetra-01 ~]$ gcloud compute machine-types list –filter="NAME=f1-micro"   <— Leave out the : to make it work

NAME ZONE CPUS MEMORY_GB DEPRECATED

f1-micro europe-west1-b 1 0.60

f1-micro us-central1-a 1 0.60

1 Answers

The correct command syntax for this one anyway is:

gcloud compute machine-types list –filter="NAME=f1-micro"

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?