2017-04-11 62 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」的登錄名。當我只使用名稱的登錄部分時,它工作正常。