Reputation: 33
While using gcloud flags like filter
and format
on Windows, passing in single-quoted arguments doesn't yield the expected result.
For example, running gcloud compute instances list --filter='status=TERMINATED'
returns an empty list, even though there are terminated instances present.
Upvotes: 0
Views: 309
Reputation: 33
The reason that single-quoted arguments don't produce the expected result is because cmd.exe doesn't use single quotes for this purpose.
Fix: Use double quotes.
Example: gcloud compute instances list --filter="status=TERMINATED"
Upvotes: 1