Hello, @Anonymous !
How do I automate VM tasks in Azure Lab Services?
Unlike standard virtual machines, VMs in Azure Lab Services are managed as part of a lab. As a result, you'll need to use Azure Lab Services REST APIs to automate tasks:
https://learn.microsoft.com/en-us/rest/api/labservices/
- Reboot a VM - Use Virtual Machines - Stop and Virtual Machines - Start.
- Take a snapshot/back up a VM - Unfortunately, there are no Azure Lab Services APIs for this action.
- Increase CPU/Disk/Memory space - Use Labs - Update.
I hope this has been helpful! If it has, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!