I'm looking to use Azure Runbooks (powershell) to automate the shutdown/startup process of a few Azure virtual machines. The VM's are running 3rd party reporting tools, some of which take a few minutes to start and stop services.
I was wondering if there's a way to control the services running on Azure VM's using runbooks, i.e the stopping/starting the 3rd party reporting tools I mentioned above. Ideally I'd be able to stop the VM's one at a time but include some powershell code to not proceed to the next VM until service 'xyz' is stopped or started. I'd appreciate any help or suggestions.
Thanks!