Forum Discussion
This may help if you are running your tests via pipeline. We set up a agent listener on our VM as described below, then added a task to the pipeline that runs powershell to reboot the VM once the tests have finished ('shutdown /r /t 60').
An interactive user session must be opened on your test agent. You can open the session manually, or, if you use Team Foundation Server 2018 or later, you can configure your agent to run with the auto-logon enabled to open the session automatically when it starts. You enable the auto-logon when you configure your agent. To learn about configuring agents, see docs.microsoft.com/en-us/azure/devops/pipelines/agents/.
Also agree with the previous answer that it could depend on how your VM's are configured/managed - ie: power & sleep settings on the VM (should be set to Never).
Related Content
- 10 years ago
Recent Discussions
- 6 hours ago
- 4 days ago