I have a VM Instance that is running, it is sending logs to my logging server.
I can't see this VM in either the console or via the cli.
It would have been started through an Instance Group, but isn't listed in that group either.
Is there an option to show all instances in all states?
Mick
Hi @Mick_Brennan,
Welcome to Google Cloud Community!
Have you tried gcloud compute instances list command that list any instance for your project, this is to help isolate the issue if it's a Console-specific problem.
→ Below List commands Taken from Medium Article:
gcloud compute instances list
gcloud compute instances list --format=json # display the output in JSON format
gcloud compute instances list --format="table(name,zone,status,machineType)" # display specific fields
gcloud compute instances list --filter="name:my-instance-*" # filter instances based on a pattern
gcloud compute instances list --filter="status:RUNNING" # filter instances based on status
gcloud compute instances list --format="table(name,zone,status,machineType,internalIp,externalIp)" # display specific fields
gcloud compute instances list --filter="zone:us-central1-a" # filter instances based on zone
→ If the instance appears but not in the Console, there may be a UI caching issue.
For Orphaned Instances - If the VM was part of an instance group but removed, it might still exist in the project but not be managed. Use the aggregated list command to find it.
gcloud compute instance-groups managed list --project=[PROJECT_ID]
gcloud compute instance-groups managed list-instances [INSTANCE_GROUP_NAME] --zone=[ZONE] --project=[PROJECT_ID]
If the issue persists, kindly reach out to Google Cloud Support for further assistance.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.