2017-04-11 44 views
0

我正在寻找方法来更新部署在使用TFS vNext的Azure VM上的web api。 Web Api部署在多个Azure虚拟机(经典)上。“Azure File Copy”任务无法将文件复制到VM

我正在使用“Azure File Copy”任务将发布的网站复制到虚拟机上的相关文件夹。

enter image description here

构建云从本地文件路径将文件上传到团块罚款,但失败,出现以下错误

2017-04-11T10:54:53.1524432Z ##[error], ServiceCommandException\r\n FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand\r\n"}};] 
2017-04-11T10:54:53.1674435Z ##[warning]'##vso[task.logissue type=error;code={"Task_Internal_Error":Failed to start service 'VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c'. Consult the logs below:' contains logging command keyword '##vso', but it's not a legal command. Please reference documentaion to fix any potentially syntax error (http://go.microsoft.com/fwlink/?LinkId=817296) 
2017-04-11T10:54:53.1684427Z ##vso[task.logissue type=error;code={"Task_Internal_Error":Failed to start service 'VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c'. Consult the logs below: 
2017-04-11T10:54:53.1684427Z Service 'VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c (VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c on computer '.'. 
2017-04-11T10:54:53.1684427Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException 
2017-04-11T10:54:53.1684427Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand 
2017-04-11T10:54:53.1684427Z For more info please refer to https://aka.ms/azurefilecopyreadme};] 
2017-04-11T10:54:53.3654455Z ##[error]Failed to start service 'VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c'. Consult the logs below: 
Service 'VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c (VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer28cc825e-0ecd-4362-a597-7ff9a10b7f2c on computer '.'. 
CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException 
FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand 
+0

该机器是否配置为允许WinRM连接?您是否查看了文档? https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/AzureFileCopy/README.md –

+0

你的TFS的版本是什么?您是否可以使用AzCopy命令行将文件复制到Azure VM? (https://docs.microsoft.com/en-in/azure/storage/storage-use-azcopy#file-upload) –

+0

该机器被允许进行WinRM连接,并且我们正在使用TFS 2017 Update 1 –

回答

0

管理来解决问题了。这是导致错误的无效凭证。我使用的机器名称是“admin login”的登录名。当我只使用名称的登录部分时,它工作正常。

相关问题