In our GCP project we have a few VMs in Compute engine for some testing purposes. Collogues often forget them running after work. Is it possible to schedule a cron job with Cloud Scheduler, that turns off the machines at a certain hour every day or should I use some other GCP service for that?
I went to the VM settings but couldn't find such options. Is it possible that startup/shutdown options are available only at creation time?
As mentioned in this blog written by Vishal Bulbule, you can schedule your VM restarts by following the below steps:
If you want to have additional features you can use some third party tools as mentioned in the blog.
Note: The steps given above are taken from the blog which has been embedded in the content above