1

On Azure, it seems possible to Auto-stop your VM based on CPU utilization

For this to be effectively used for cost-saving, I need the VM to be auto-started on the next access to its public IP address.

This is a server which gets only a few hours of usage every week, and they are concentrated, so this could mean ~10X cost reduction...

gatopeich
  • 3,287
  • 31
  • 26

1 Answers1

2

You could actually do something like that with something like Traffic Manager\Azure Function combination, but its probably better to move your workload to Azure Container Instances\Azure Functions, that would be a more native way of doing so.

If you wish to proceed with your design, you'd have to have some sort of load balancing between something that is always listening (like Azure Function) and a real VM. when you send a request to the endpoint Function will pick it up and start the vm, after that VM will pick up all the requests (it has to have a bigger weigth than the fucntion).

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
  • Thanks, I will try those "Functions"... Yet avoiding the extra cost of a Load Balancer. Or the Container instance cause it still requires a VM to run so it adds to cost + complexity. So I will see if I can shutdown the VM and take over the public IP from a `Function`, then do the reverse on any incoming request... – gatopeich Apr 09 '19 at 10:43
  • 1
    no, azure container instace doesnt require a vm to run. its abstracts that away from you. load balancer is free, so nothing to avoid. – 4c74356b41 Apr 09 '19 at 10:46
  • Okay I am trying container since it takes very long to fully shutdown & start VMs. Still I don't see it available for the 12 months free trial, but let's see if I can automate it... – gatopeich Apr 10 '19 at 22:43