TFS2012 LabDefault.11 template deploy scripts fail with “Team Foundation Server could not complete the deployment task”

后端 未结 5 675
醉酒成梦
醉酒成梦 2021-01-21 11:10

I am having security issues with lab management and standard environments.

I have TFS2012 update 2 installed in my domain \"DevDomain\". I have a separa

5条回答
  •  鱼传尺愫
    2021-01-21 12:11

    Using Visual Studio 2012 Update 4, and Team Foundation Server, on a one-way trust or isolated/workgroup network configuration, we have found an additional step is required. When running automated unit tests via the Build-Deploy-Test workflow, we have found that setting the lab service account is only part of the solution. In order to avoid Access is denied errors in the build, we also had to set the user for the Visual Studio Lab Agent Service.

    This is what the services in the Services applet look like after setting the lab service account (in this example, ".\LabAdmin"):

    Visual Studio Lab Agent Service         | Configures, monitors... | Running | Automatic | Local System  
    Visual Studio Lab Network Agent Service | Sets network propert... | Running | Automatic | Local System  
    Visual Studio Test Agent                | Provides distributed... | Running | Automatic | .\LabAdmin  
    

    In order to fix the Access is denied error, we also had to run the Visual Studio Lab Agent Service under the lab service account:

    Visual Studio Lab Agent Service         | Configures, monitors... | Running | Automatic | .\LabAdmin  
    Visual Studio Lab Network Agent Service | Sets network propert... | Running | Automatic | Local System  
    Visual Studio Test Agent                | Provides distributed... | Running | Automatic | .\LabAdmin  
    

    After making this change, and restarting the services, the Access is denied error went away. This was repeated on two different target computers, at least with our configuration it appears to be a necessary step.

提交回复
热议问题