Workflow and test capability not enabled in lab management

I deployed my first machine with lab management, but when the deploy finished I verify that workflow capability and test capability are not enabled in the machine. This is how you should see deployed machine

image

If the hilighted icons have a red cross instead of the play button you have a problem. Quite always the problem rely on permissions, so the best way to solve it is to connect to the machine and take a look at event viewer.

image

Unable to connect to the controller on xxxx permisssion denied… this operation can only be performed by members of TeamTestAgentService.

This problem is related to test controller, to solve it you first need to verify the user that is configured to run the Visual Studio Test Agent service, usually is network service. Then you need to log on the machine where the test contoller was installed, and manage local groups, you need to verify that in TeamTestAgentService group the name of the computer deployed is in the TeamTestAgentService group.

image

For the build agent the situation is similar, but you need to connect to the machine where the TFS is installed, goes to the project collection, then choose Administer Group Membership and click properties for the Project Collection Build Service Accounts. Now verify that the virtual machine deployed is added to this group.

image

When you verified those two security settings, simply restart both the service in the virtual machine, then click on the icon and choose Repair Testing Capability and the same for the workflow.

image

Now everything should work as expected

Alk.