Oh derp I didn't realize you can run windows on google cloud. So yeah I think the guy had good idea. Setup small instance running forever that will start/stop the windows one. f1.micro costs about $4/month. Of course install linux on f1.
From there, install gcloud according to this guide
https://cloud.google.com/compute/docs/gcloud-compute/ and make sure it can manage your instances. Eg. gcloud compute instances list should show both f1.micro and the windows one. Let's call it "windows-server". Add to crontab on your f1.micro:
Code
0 7 * * * /usr/local/bin/gcloud compute instances start windows-server
0 19 * * * /usr/local/bin/gcloud compute instances stop windows-server
(assuming gcloud is installed in /usr/local/bin. You might need to change that to wherever its installed to)
and that should be it.
before you do, what kind of disk do you have attached there? Because this is important to note:
Quote
If your instance has a local SSD attached, you can stop the instance but you will not be able to restart the instance. The instance remains in the TERMINATED state until you delete it.
If you have persistent disk it should be fine
This post was edited by nuvo on Feb 26 2017 04:39pm