azure-pipelines-tasks: Visual Studio Test Agent Deployment v2.preview can't run DTAExecutionHost.exe

Hi.

We can’t deploy Test Agents 2017 to our Windows 8.1 industry pro x32 machine

Log below:

2017-03-22T15:49:34.7289245Z ##[section]Starting: Deploy TestAgent on VMMachine 2017-03-22T15:49:34.7289245Z ============================================================================== 2017-03-22T15:49:34.7289245Z Task : Visual Studio Test Agent Deployment 2017-03-22T15:49:34.7289245Z Description : Deploy and configure Test Agent to run tests on a set of machines 2017-03-22T15:49:34.7289245Z Version : 2.0.7 2017-03-22T15:49:34.7289245Z Author : Microsoft Corporation 2017-03-22T15:49:34.7289245Z Help : More Information 2017-03-22T15:49:34.7289245Z ============================================================================== 2017-03-22T15:49:37.1936771Z **************************************************************** 2017-03-22T15:49:37.1936771Z Task Input Information
2017-03-22T15:49:37.1936771Z ---------------------------------------------------------------- 2017-03-22T15:49:37.1936771Z testMachineInput = VMMachine 2017-03-22T15:49:37.2092768Z adminUserName = sysadm 2017-03-22T15:49:37.2092768Z winRmProtocal = Http 2017-03-22T15:49:37.2092768Z testCertificate = true 2017-03-22T15:49:37.2092768Z machineUserName = sysadm 2017-03-22T15:49:37.2092768Z runAsProcess = true 2017-03-22T15:49:37.2092768Z logonAutomatically = true 2017-03-22T15:49:37.2092768Z disableScreenSaver = true 2017-03-22T15:49:37.2248765Z isDataCollectionOnly = false 2017-03-22T15:49:37.2248765Z testPlatform = 15.0 2017-03-22T15:49:37.2248765Z agentLocation = 2017-03-22T15:49:37.2248765Z updateTestAgent = true 2017-03-22T15:49:37.2248765Z **************************************************************** 2017-03-22T15:49:37.7708660Z Starting to deploy and configure test agent on test machines. 2017-03-22T15:49:37.7864657Z Inputs provided are: 2017-03-22T15:49:37.7864657Z Use HTTP Port: True 2017-03-22T15:49:37.7864657Z Username: sysadm 2017-03-22T15:49:37.7864657Z Disable Screen saver: True 2017-03-22T15:49:37.7864657Z Login Automatically: True 2017-03-22T15:49:37.7864657Z Run as process: True 2017-03-22T15:49:37.7864657Z Agent would be downloaded from https://go.microsoft.com/fwlink/?LinkId=615472 2017-03-22T15:49:37.7864657Z Update test agent: True 2017-03-22T15:49:37.7864657Z Run test agent as DataCollection only : False 2017-03-22T15:49:38.0828600Z Task ‘VerifyTestAgentInstalled’ on machine ‘VMMachine:5985’ is being run 2017-03-22T15:50:38.0949059Z Task ‘VerifyTestAgentInstalled’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:51:38.1069518Z Task ‘VerifyTestAgentInstalled’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:52:38.1189977Z Task ‘VerifyTestAgentInstalled’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:52:50.4271610Z Task ‘VerifyTestAgentInstalled’ on machine ‘VMMachine:5985’ completed. 2017-03-22T15:52:50.4271610Z Deployment started on target machine… 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z Query for Testplatfrom version: 15.0 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z Testing container: ‘REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}’ 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z Does not exist. 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z Test Agent does not exists 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z 2017-03-22T15:52:50.4271610Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]23:3:17:0:52:57:6186; 5656, 4Created public key for communication 2017-03-22T15:52:50.4271610Z RemoteDeployerSource Information: 12 : [RemoteDeployer]23:3:17:0:52:57:7123; 5656, 4Deployment service - VisualStudioRemoteDeployer63ad3a4d-ed6e-4671-8509-2f23af89fb7a is running… 2017-03-22T15:52:50.4271610Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer]23:3:17:0:52:58:7280; 5656, 6Input file found 2017-03-22T15:52:50.4427607Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer]23:3:17:0:52:58:7280; 5656, 6Reading input parameters 2017-03-22T15:52:50.4427607Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]23:3:17:0:52:58:7280; 5656, 6Finished reading input parameters 2017-03-22T15:52:50.4427607Z 2017-03-22T15:52:50.4583604Z Starting to download testagent 2017-03-22T15:52:52.0027307Z testagent is downloaded at: C:\TestAgent\68da9ea6-0273-4846-8c02-2de96a85fc6a 2017-03-22T15:53:52.4204990Z Task ‘CopyFilesToTestAgent’ on machine ‘VMMachine:5985’ is being run 2017-03-22T15:54:09.3618818Z Task ‘CopyFilesToTestAgent’ on machine ‘VMMachine:5985’ completed. 2017-03-22T15:54:09.3618818Z 2017-03-22T15:54:09.3618818Z \VMMachine was deleted successfully. 2017-03-22T15:54:09.3618818Z 2017-03-22T15:54:09.3618818Z Copying recursively from C:\TestAgent\68da9ea6-0273-4846-8c02-2de96a85fc6a to C:\TestAgent on machine VMMachine succeeded. 2017-03-22T15:54:09.3618818Z 2017-03-22T15:54:09.3618818Z \VMMachine was deleted successfully. 2017-03-22T15:54:09.3618818Z 2017-03-22T15:54:09.3618818Z 2017-03-22T15:54:09.3618818Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is being run 2017-03-22T15:55:09.3743124Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:56:09.3867430Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:57:09.3991736Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:58:09.4116042Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T15:59:09.4242740Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T16:00:09.4370893Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T16:01:09.4499046Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T16:01:35.7669359Z Deployment started on target machine… 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Testing container: ‘REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}’ 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Does not exist. 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Installed Test Agent version: 0.0 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Requested Test Agent version: 15.0.26228 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Test Agent will be installed 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Waiting for installtion to finish 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Configuration Test Agent path: C:\TestAgent2017\Common7\IDE\TestAgentConfig.exe 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Installation of Test Agent failed with Error code System.Object[]. Retrying once by rebooting machine 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Microsoft ® Visual Studio Test Agent Configuration Tool Version 15.0.26228.0 2017-03-22T16:01:35.7669359Z for Microsoft Agents for Visual Studio 2017 2017-03-22T16:01:35.7669359Z Copyright © Microsoft Corporation. All rights reserved. 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Firewall Configuration: 2017-03-22T16:01:35.7669359Z Configured firewall exceptions for: ‘Microsoft Visual Studio Test Agent Service’. 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Enable Remote Desktop: 2017-03-22T16:01:35.7669359Z No change to the Remote Desktop setting as Remote Desktop was already enabled on the machine. 2017-03-22T16:01:35.7669359Z 2017-03-22T16:01:35.7669359Z Firewall Configuration: 2017-03-22T16:01:35.7825358Z No change to the firewall setting as the firewall exception was already enabled for the service ‘Remote Desktop’. 2017-03-22T16:01:35.7825358Z Configured firewall exceptions for: ‘Remote Desktop’. 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Service Configuration: 2017-03-22T16:01:35.7825358Z Configured service successfully : Visual Studio Lab Agent Service 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Start Service: 2017-03-22T16:01:35.7825358Z Started service : Visual Studio Lab Agent Service 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Service Configuration: 2017-03-22T16:01:35.7825358Z Configured service successfully : Visual Studio Lab Network Agent Service 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Start Service: 2017-03-22T16:01:35.7825358Z Started service : Visual Studio Lab Network Agent Service 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Service Configuration: 2017-03-22T16:01:35.7825358Z Configured service successfully : Visual Studio Test Agent 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z ACL Configuration: 2017-03-22T16:01:35.7825358Z Configured ACL successfully. 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Start Service: 2017-03-22T16:01:35.7825358Z Test agent service is not started as it is not associated with any test controller. Ignore this warning if this machine will be used in a virtual environment created using the Lab Center of Microsoft Test Manager. 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Network Emulation Configuration: 2017-03-22T16:01:35.7825358Z Operating System Check: Microsoft Windows NT 6.3.9600.0 (32 Bit) 2017-03-22T16:01:35.7825358Z UAC is Disabled. 2017-03-22T16:01:35.7825358Z Check for existing driver: Done. 2017-03-22T16:01:35.7825358Z Driver installation files check: Done. 2017-03-22T16:01:35.7825358Z Network test passed. 2017-03-22T16:01:35.7825358Z Installing the Network Emulation driver… 2017-03-22T16:01:35.7825358Z Driver installation: Done. 2017-03-22T16:01:35.7825358Z Testing driver… 2017-03-22T16:01:35.7825358Z Driver version check: Done. 2017-03-22T16:01:35.7825358Z Testing driver bindings… 2017-03-22T16:01:35.7825358Z Driver is bound to 1 NIC(s) 2017-03-22T16:01:35.7825358Z Testing driver initialization… 2017-03-22T16:01:35.7825358Z Driver initialization: Succeeded. 2017-03-22T16:01:35.7825358Z Waiting for the network to return… 2017-03-22T16:01:35.7825358Z Network test passed. 2017-03-22T16:01:35.7825358Z The Network Emulation driver was installed successfully. 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z The user account for the test agent does not have administrator privileges. Press F1 to learn more about when the test agent needs these privileges. 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]23:3:17:0:55:34:9002; 4552, 4Created public key for communication 2017-03-22T16:01:35.7825358Z RemoteDeployerSource Information: 12 : [RemoteDeployer]23:3:17:0:55:34:9158; 4552, 4Deployment service - VisualStudioRemoteDeployer95fe7d1a-8a1d-454e-8065-4c4b20f7a025 is running… 2017-03-22T16:01:35.7825358Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer]23:3:17:0:55:35:9471; 4552, 6Input file found 2017-03-22T16:01:35.7825358Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer]23:3:17:0:55:35:9471; 4552, 6Reading input parameters 2017-03-22T16:01:35.7825358Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]23:3:17:0:55:35:9471; 4552, 6Finished reading input parameters 2017-03-22T16:01:35.7825358Z 2017-03-22T16:01:35.7825358Z Task ‘InstallTestAgent’ on machine ‘VMMachine:5985’ completed. 2017-03-22T16:02:36.2321483Z Task ‘CopyFilesToTestAgent’ on machine ‘VMMachine:5985’ is being run 2017-03-22T16:02:51.8320483Z 2017-03-22T16:02:51.8320483Z \VMMachine was deleted successfully. 2017-03-22T16:02:51.8320483Z 2017-03-22T16:02:51.8320483Z Copying recursively from C:\VSTSBuildAgent_work_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\2.0.7\TestExecution.zip to C:\TestAgent on machine VMMachine succeeded. 2017-03-22T16:02:51.8320483Z 2017-03-22T16:02:51.8320483Z \VMMachine was deleted successfully. 2017-03-22T16:02:51.8320483Z 2017-03-22T16:02:51.8320483Z 2017-03-22T16:02:51.8320483Z Task ‘CopyFilesToTestAgent’ on machine ‘VMMachine:5985’ completed. 2017-03-22T16:02:51.8320483Z Task ‘TestAgentConfiguration’ on machine ‘VMMachine:5985’ is being run 2017-03-22T16:03:51.8448636Z Task ‘TestAgentConfiguration’ on machine ‘VMMachine:5985’ is taking time. Please Wait 2017-03-22T16:04:26.8510392Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]23:3:17:1:4:17:4926; 4912, 4Created public key for communication 2017-03-22T16:04:26.8510392Z RemoteDeployerSource Information: 12 : [RemoteDeployer]23:3:17:1:4:17:5083; 4912, 4Deployment service - VisualStudioRemoteDeployerd16325ee-aaf5-4463-8fea-1590d061e091 is running… 2017-03-22T16:04:26.8510392Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer]23:3:17:1:4:18:5239; 4912, 6Input file found 2017-03-22T16:04:26.8510392Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer]23:3:17:1:4:18:5239; 4912, 6Reading input parameters 2017-03-22T16:04:26.8666391Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]23:3:17:1:4:18:5239; 4912, 6Finished reading input parameters 2017-03-22T16:04:26.8666391Z 2017-03-22T16:04:26.8666391Z Task ‘TestAgentConfiguration’ on machine ‘VMMachine:5985’ completed. 2017-03-22T16:04:26.8666391Z ##[warning]Task ‘TestAgentConfiguration’ for machine VMMachine:5985’s Error : System.Exception: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Unable to start DTAExecutionHost process 2017-03-22T16:04:26.8666391Z ##[warning]Task ‘TestAgentConfiguration’ for machine VMMachine:5985’s Log : 2017-03-22T16:04:26.8666391Z Deployment started on target machine… 2017-03-22T16:04:26.8666391Z 2017-03-22T16:04:26.8666391Z System.AggregateException: Failed to execute the powershell script. Consult the logs below for details of the error. 2017-03-22T16:04:26.8666391Z The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Unable to start DTAExecutionHost process —> System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Unable to start DTAExecutionHost process 2017-03-22T16:04:26.8666391Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0() 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_01.<Execute>b__0() 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2017-03-22T16:04:26.8666391Z --- End of inner exception stack trace --- 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.ScriptExecutor.ExecuteScript(IPowerShell powerShell, String script, String arguments, Boolean isScriptDotSourced, Boolean useHttp) 2017-03-22T16:04:26.8666391Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession) 2017-03-22T16:04:26.8666391Z ---> (Inner Exception #0) System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Unable to start DTAExecutionHost process 2017-03-22T16:04:26.8666391Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8666391Z at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings) 2017-03-22T16:04:26.8822390Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2017-03-22T16:04:26.8822390Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0() 2017-03-22T16:04:26.8822390Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_01.<Execute>b__0() 2017-03-22T16:04:26.8822390Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2017-03-22T16:04:26.8822390Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2017-03-22T16:04:26.8822390Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)<— 2017-03-22T16:04:26.8822390Z Path: C:\TestAgent\TfsAssemblies\Newtonsoft.Json.dll 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Newtonsoft.Json.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\System.Net.Http.Formatting.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.DistributedTask.Task.TestExecution.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.Common.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Microsoft.TeamFoundation.Test.WebApi.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Microsoft.VisualStudio.Services.Common.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\TfsAssemblies\Microsoft.VisualStudio.Services.WebApi.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Loading module from path ‘C:\TestAgent\PrivateAssemblies\MS.VS.TestService.Client.Utility.dll’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z **************************************************************** 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Configure Test Agent
2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z ---------------------------------------------------------------- 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z SetupPath : (C:\TestAgent) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z TestUserName : (sysadm) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z TfsCollection : (https://.visualstudio.com/) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z AsServiceOrProcess : (Process) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z EnvironmentUrl : (dta://env/testproj/_apis//201703221849377864) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z MachineName : (VMMACHINE) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Capabilities : () 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z TestAgentVersion : (15.0) 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z **************************************************************** 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Register the Agent with Id: 49 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Get-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Unregister-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Disable-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Enable-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Export-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘Get-ScheduledTaskInfo’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘New-ScheduledTask’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘New-ScheduledTaskAction’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘New-ScheduledTaskPrincipal’. 2017-03-22T16:04:26.8822390Z 2017-03-22T16:04:26.8822390Z Exporting function ‘New-ScheduledTaskSettingsSet’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Register-ScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Set-ScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Start-ScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Stop-ScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Get-ClusteredScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Register-ClusteredScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Set-ClusteredScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z Exporting function ‘Unregister-ClusteredScheduledTask’. 2017-03-22T16:04:26.8978389Z 2017-03-22T16:04:26.8978389Z <?xml version="1.0" encoding="UTF-16"?> 2017-03-22T16:04:26.8978389Z <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> 2017-03-22T16:04:26.8978389Z <RegistrationInfo> 2017-03-22T16:04:26.8978389Z <Description>DTA UI</Description> 2017-03-22T16:04:26.8978389Z </RegistrationInfo> 2017-03-22T16:04:26.8978389Z <Triggers> 2017-03-22T16:04:26.8978389Z <LogonTrigger> 2017-03-22T16:04:26.8978389Z <Enabled>true</Enabled> 2017-03-22T16:04:26.8978389Z <Delay>P0DT0H0M0S</Delay> 2017-03-22T16:04:26.8978389Z </LogonTrigger> 2017-03-22T16:04:26.8978389Z </Triggers> 2017-03-22T16:04:26.8978389Z <Principals> 2017-03-22T16:04:26.8978389Z <Principal> 2017-03-22T16:04:26.8978389Z <RunLevel>HighestAvailable</RunLevel> 2017-03-22T16:04:26.8978389Z </Principal> 2017-03-22T16:04:26.8978389Z </Principals> 2017-03-22T16:04:26.8978389Z <Settings> 2017-03-22T16:04:26.8978389Z <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> 2017-03-22T16:04:26.8978389Z <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> 2017-03-22T16:04:26.8978389Z <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> 2017-03-22T16:04:26.8978389Z <AllowHardTerminate>true</AllowHardTerminate> 2017-03-22T16:04:26.8978389Z <StartWhenAvailable>false</StartWhenAvailable> 2017-03-22T16:04:26.8978389Z <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> 2017-03-22T16:04:26.8978389Z <IdleSettings> 2017-03-22T16:04:26.8978389Z <Duration>PT10M</Duration> 2017-03-22T16:04:26.8978389Z <WaitTimeout>PT1H</WaitTimeout> 2017-03-22T16:04:26.8978389Z <StopOnIdleEnd>true</StopOnIdleEnd> 2017-03-22T16:04:26.8978389Z <RestartOnIdle>false</RestartOnIdle> 2017-03-22T16:04:26.8978389Z </IdleSettings> 2017-03-22T16:04:26.8978389Z <AllowStartOnDemand>true</AllowStartOnDemand> 2017-03-22T16:04:26.8978389Z <Enabled>true</Enabled> 2017-03-22T16:04:26.8978389Z <Hidden>false</Hidden> 2017-03-22T16:04:26.8978389Z <RunOnlyIfIdle>false</RunOnlyIfIdle> 2017-03-22T16:04:26.8978389Z <WakeToRun>false</WakeToRun> 2017-03-22T16:04:26.8978389Z <ExecutionTimeLimit>PT72H</ExecutionTimeLimit> 2017-03-22T16:04:26.8978389Z <Priority>7</Priority> 2017-03-22T16:04:26.8978389Z </Settings> 2017-03-22T16:04:26.8978389Z <Actions> 2017-03-22T16:04:26.8978389Z <Exec> 2017-03-22T16:04:26.8978389Z <Command>C:\TestAgent\DTAExecutionHost.exe</Command> 2017-03-22T16:04:26.9134388Z <Arguments>DTA.AccessToken:******** DTA.AgentId:49 DTA.EnvironmentUri:dta://env/testproj/_apis//201703221849377864 DTA.TeamFoundationCollectionUri:https://.visualstudio.com/ DTA.TestPlatformVersion:15.0</Arguments> 2017-03-22T16:04:26.9134388Z </Exec> 2017-03-22T16:04:26.9134388Z </Actions> 2017-03-22T16:04:26.9134388Z </Task> 2017-03-22T16:04:26.9134388Z 2017-03-22T16:04:26.9134388Z Registering scheduled task output: MSFT_ScheduledTask (TaskName = “DTA”, TaskPath = "") error: 2017-03-22T16:04:26.9134388Z 2017-03-22T16:04:26.9134388Z Starting scheduled task output: error: 2017-03-22T16:04:26.9134388Z 2017-03-22T16:04:26.9134388Z 2017-03-22T16:04:26.9134388Z ##[error]Error occured on ‘VMMachine:5985’. Details : ‘The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Unable to start DTAExecutionHost process’. For troubleshooting, refer https://aka.ms/remotevstest. 2017-03-22T16:04:26.9446386Z ##[section]Finishing: Deploy TestAgent on VMMachine

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 19

Most upvoted comments

@swiec, from the logs

You have visual studio and test agent installed on the same machine

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent

This is currently not supported. You need to have “isolated machine with Test agent only”. We do have tracking bug to find the right version when multiple instances of VS products are installed. It will be fixed in few days.

Hi,

This is known issue and we fixed it recently https://github.com/Microsoft/vsts-tasks/commit/0342e8d3e0f8c337470e7b4f65db1dda617231c8 This should be fixed with next VSTS deployment.

Temporary work around:

  1. Open RDP to Test Agent machine with same username provided in Deploy Test agent task
  2. Keep it open till the deploy test agent task is completed
  3. Close the RDP session and it should work for subsequent runs