简体   繁体   中英

How can I automatically scale up a VM, run a console app and scale down the VM Daily on Azure

I have this app that I need to execute on a specific Azure VM (GPU heavy) daily. I don't want to pay for the machine running 24/7 and I am looking for a way to automate this. What would be the best approach for this?

I am reading up on Azure Runbooks but I'm not 100% sure if this can be achieved. I was also thinking if scheduling an Azure Devops Pipeline to run and scale up the machine and execute the console app and then automatic scaling down of a machine if the CPU load is low.

This seems like a typical and basic scenario to which I cannot find an easy solution.

You can start/stop VMs on a schedule in Azure . You could also modify your app to shutdown the server as soon as it exits so the VM is running for least possible time (instead of waiting for the scheduled shutdown).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM