DevTest Labs - avoid shutdown of VMs when builds are running

Chethan S 96 Reputation points

We use VMs in DevTest Labs as build agents for Azure DevOps. The VMs have auto-shutdown turned on. Now the issue is they get turned off even when builds are running on them. How to avoid this? The notification about the shutdown time approaching won't help as build jobs run in an unattended manner.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
263 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vladimir Gusarov 81 Reputation points MVP

    I believe that best way in your scenario is ether not use auto-shutdown or identify better time to shutdown build agents when you are sure that build is not happening.

    Honestly, it's better to manage agent lifecycle from Azure DevOps like Microsoft does for Microsoft hosted agent. You may also can try new feature of Azure DevOps called Scale Set Agents which is in preview now. It's designed exactly to manage your self-hosted agents and scale them up and down as needed. That will allow you to keep agent cost usage on optimal level possible.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful