简体   繁体   中英

Azure Python SDK: How to set auto-shutdown task on VMs?

On Azure Portal I can set auto-shutdown for a VM but can't find the API command for the Python SDK anywhere. Is this possible at the moment? Do I have to use DevTestLab? The SDK in question: https://github.com/Azure/azure-sdk-for-python

1.The auto-shutdown in the portal is configured as part of the VM's deployment template. If you updated the template, you could certainly deploy it in whatever way you choose.

2.You could schedule a script using the REST API in Azure to start/stop the VM at any schedule of your choosing. The script could deployed on Webjobs , Azure Functions or Azure Scheduler .

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