Deploy Visual Studio Test Agent Task – Test Machine Rebooting Scenarios

This post addresses specific scenarios related to the Deploy Visual Studio Test Agent (DTA) task in TFS/VSTS, focusing on test machine rebooting and auto-logon requirements for UI tests. It details how the DTA task enables auto-logon by modifying registry keys when disabled locally, but notes that Group Policies can override this. The post highlights issues with legal notices/logon banners causing auto-logon failures and introduces a reboot cap of 3 in newer versions (VSTS, TFS 2015 Update 4 & TFS 2017 Update 2 onwards) to prevent infinite reboots. It also details warning messages provided by the DTA task when policies or registry entries might hinder auto-logon, and answers common questions regarding reboots, auto-logon necessity, and troubleshooting repeated reboots.
More from the Azure Pipelines Agent Operating System Support trail
- April Patches for Azure DevOps Server and Team Foundation Server
- CDN Domain URL change for Agents in Pipelines
- Announcing the General Availability of Managed DevOps Pools (MDP) for Azure DevOps
- Announcing Public Preview of Managed DevOps Pools (MDP) for Azure DevOps
- End of support for Azure Pipelines agents running on CentOS 6, Debian 4.9, Fedora 32, Ubuntu 16, macOS 10.14, and older versions