"Azure File Copy" 将文件复制到 VM 的任务失败
"Azure File Copy" task failing for copying files to VM
我一直在寻找使用 TFS vNext 更新部署在 Azure VM 上的 Web api 的方法。 Web Api 部署在多个 Azure 虚拟机(经典)上。
我正在使用 "Azure File Copy" 任务将已发布的网站复制到虚拟机上的相关文件夹中。
构建将文件从本地文件路径上传到 blob 正常,但之后失败并出现以下错误
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
已成功解决问题。导致错误的是无效凭据。我使用 "admin login" 的登录名和机器名。当我只使用名称的登录部分时,它工作正常。
我一直在寻找使用 TFS vNext 更新部署在 Azure VM 上的 Web api 的方法。 Web Api 部署在多个 Azure 虚拟机(经典)上。
我正在使用 "Azure File Copy" 任务将已发布的网站复制到虚拟机上的相关文件夹中。
构建将文件从本地文件路径上传到 blob 正常,但之后失败并出现以下错误
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
已成功解决问题。导致错误的是无效凭据。我使用 "admin login" 的登录名和机器名。当我只使用名称的登录部分时,它工作正常。