Closed brunobertechini closed 7 years ago
Powershell 5 is required. I've only ever used in on prem.
That call stack doesn't include anything outside of the WinRM remote deployer.
Here is the full (debug enabled) logs
2016-10-18T19:04:35.9418564Z ##[section]Starting: Stop Windows Service: $(BackendServiceName)
2016-10-18T19:04:35.9418564Z Preparing task execution handler.
2016-10-18T19:04:36.3012315Z Executing the powershell script: C:\agent\_work\_tasks\StopWindowsService_601cd43e-b65d-49b7-b118-091333bd5b9f\1.16271.0\StopWindowsService.ps1
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddCommand(C:\agent\_work\_tasks\StopWindowsService_601cd43e-b65d-49b7-b118-091333bd5b9f\1.16271.0\StopWindowsService.ps1)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - Add inputParameters
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(ServiceNames=Company.Product.Service1)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(EnvironmentName=MyServer.MyDomain.net)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(AdminUserName=MyDomain\TFS.2015)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(AdminPassword=*************)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(StartupType=Manual)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(WaitTimeoutInSeconds=120)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(protocol=Http)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(TestCertificate=true)
2016-10-18T19:04:36.3012315Z ##[debug]PowerShellHandler.Execute - AddParameter(KillIfTimedOut=true)
2016-10-18T19:04:36.4262324Z ##[debug]PowerShellHandler.Execute - Invoke
2016-10-18T19:04:36.4574857Z Stopping Windows Service: and setting startup type to: Manual. Kill: true Version: 1.16271.0
2016-10-18T19:04:36.5199864Z ScriptArguments: -serviceNames "Company.Product.Service1" -startupType Manual -waitTimeoutInSeconds 120 -killIfTimedOut true
2016-10-18T19:04:36.5199864Z
2016-10-18T19:04:36.5199864Z
2016-10-18T19:04:36.5356102Z Invoking deployment
2016-10-18T19:04:36.7074866Z ##[debug]Processing: ##vso[task.setprogress value=-1;]
2016-10-18T19:04:36.7231137Z ##[debug]Entering Remote-Deployment block
2016-10-18T19:04:36.8168618Z ##[debug]Processing: ##vso[task.setprogress value=-1;]
2016-10-18T19:04:36.9262380Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.LegacySDK.dll'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Publish-TestResults'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Convert-String'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Remove-Environment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-Environment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-ProviderData'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'New-OperationLog'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Register-Environment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Register-Provider'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Register-ProviderData'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Find-Files'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'.
2016-10-18T19:04:36.9262380Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Add-BuildArtifactLink'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Add-BuildAttachment'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Convert-String'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Copy-BuildArtifact'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-JavaDevelopmentKitPath'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-MSBuildLocation'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-ServiceEndpoint'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-TaskVariable'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-TfsClientCredentials'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-ToolPath'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-VisualStudioPath'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-VssConnection'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-Ant'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-BatchScript'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-Maven'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-MSBuild'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-Tool'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Invoke-VSTest'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Publish-BuildArtifact'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Register-XamarinLicense'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Unregister-XamarinLicense'.
2016-10-18T19:04:36.9418631Z ##[debug]Exporting cmdlet 'Get-X509Certificate'.
2016-10-18T19:04:36.9418631Z ##[debug]Processing: ##vso[task.setprogress value=-1;]
2016-10-18T19:04:36.9418631Z ##[debug]Invoke - Get-VssConnection cmdlet
2016-10-18T19:04:36.9574879Z ##[debug]Get - SecretService and EndpointService from TaskContext
2016-10-18T19:04:36.9574879Z ##[debug]Fetched Endpoint:SystemVssConnection
2016-10-18T19:04:36.9574879Z ##[debug]AuthorizationType : OAuth
2016-10-18T19:04:38.0081468Z ##[debug]VssConnection created
2016-10-18T19:04:38.0081468Z ##[debug]Starting Register-Environment cmdlet call for environment : MyServer.MyDomain.net with filter
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Publish-TestResults'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Convert-String'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Remove-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-ProviderData'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'New-OperationLog'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Register-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Register-Provider'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Register-ProviderData'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Find-Files'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'.
2016-10-18T19:04:38.1331496Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Invoke-BlockEnvironment'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Copy-FilesToAzureBlob'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Copy-FilesToTargetMachine'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Copy-ToAzureMachines'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Remove-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Remove-EnvironmentResources'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Complete-EnvironmentOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Complete-EnvironmentResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Complete-ResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-EnvironmentProperty'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-EnvironmentResources'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-ExternalIpAddress'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-ParsedSessionVariables'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Get-ProviderData'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Invoke-EnvironmentOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Invoke-ResourceOperation'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Invoke-PsOnRemote'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'New-OperationLog'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Copy-FilesToRemote'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Register-Environment'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Register-EnvironmentDefinition'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Register-Provider'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Register-ProviderData'.
2016-10-18T19:04:38.1331496Z ##[debug]Exporting cmdlet 'Invoke-UnblockEnvironment'.
2016-10-18T19:04:38.1331496Z ##[debug]Processing: ##vso[task.setprogress value=-1;]
2016-10-18T19:04:38.1487762Z ##[debug]Begin Create-Environment cmdlet
2016-10-18T19:04:38.1487762Z ##[debug]UserName=MyDomain\TFS.2015
2016-10-18T19:04:38.1487762Z ##[debug]WinRmProtocol=HTTP
2016-10-18T19:04:38.1487762Z ##[debug]TestCertificate=True
2016-10-18T19:04:39.4925302Z ##[debug]Unable to create a environment object for given json - Error parsing positive infinity value. Path '', line 1, position 1.
2016-10-18T19:04:39.4925302Z ##[debug]Instantiating new Environment with the provided EnvironmentSpecification
2016-10-18T19:04:39.4925302Z ##[debug]Using performedById=a55d8acd-9e48-4fb8-98fd-59770b664fae
2016-10-18T19:04:39.4925302Z ##[debug]projectName=BytePlatz
2016-10-18T19:04:39.5081549Z ##[debug]Setting TestCertificate to false as the WinRmProtocol is HTTP
2016-10-18T19:04:39.5081549Z ##[debug]Parsing EnvironmentSpecification MyServer.MyDomain.net
2016-10-18T19:04:39.5081549Z ##[debug]Updated HTTP port of resource MyServer.MyDomain.net to 5985
2016-10-18T19:04:39.5081549Z ##[debug]Added machine MyServer.MyDomain.net to environment MyServer.MyDomain.net
2016-10-18T19:04:39.5081549Z ##[debug]Finished instantiating new Environment with the provided EnvironmentSpecification
2016-10-18T19:04:39.5081549Z ##[debug]End Create-Environment cmdlet
2016-10-18T19:04:39.5081549Z ##[debug]Completed Register-Environment cmdlet call for environment : MyServer.MyDomain.net
2016-10-18T19:04:39.5081549Z ##[debug]Starting Get-EnvironmentResources cmdlet call on environment name: MyServer.MyDomain.net
2016-10-18T19:04:39.5862884Z ##[debug]Get-EnvironmentResources cmdlet started
2016-10-18T19:04:39.5862884Z ##[debug]Process Environment by object
2016-10-18T19:04:39.5862884Z ##[debug]Get-EnvironmentResources cmdlet ended
2016-10-18T19:04:39.6019066Z ##[debug]Starting Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with key: Microsoft-Vslabs-MG-SkipCACheck
2016-10-18T19:04:39.6175316Z ##[debug]Get-EnvironmentResources cmdlet
2016-10-18T19:04:39.6175316Z ##[debug]Environment.Name=MyServer.MyDomain.net
2016-10-18T19:04:39.6175316Z ##[debug]Completed Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with key: Microsoft-Vslabs-MG-SkipCACheck
2016-10-18T19:04:39.6175316Z ##[debug]Get Resource properties for MyServer.MyDomain.net (ResourceId = 1)
2016-10-18T19:04:39.6175316Z ##[debug]Starting Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with resource id: 1(Name : MyServer.MyDomain.net) and key: Microsoft-Vslabs-MG-Resource-FQDN
2016-10-18T19:04:39.6175316Z ##[debug]Get-EnvironmentResources cmdlet
2016-10-18T19:04:39.6175316Z ##[debug]Environment.Name=MyServer.MyDomain.net
2016-10-18T19:04:39.6175316Z ##[debug]Completed Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with resource id: 1(Name : MyServer.MyDomain.net) and key: Microsoft-Vslabs-MG-Resource-FQDN
2016-10-18T19:04:39.6487828Z ##[debug]Starting Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with resource id: 1(Name : MyServer.MyDomain.net) and key: WinRM_Http
2016-10-18T19:04:39.6487828Z ##[debug]Get-EnvironmentResources cmdlet
2016-10-18T19:04:39.6487828Z ##[debug]Environment.Name=MyServer.MyDomain.net
2016-10-18T19:04:39.6487828Z ##[debug]Completed Get-EnvironmentProperty cmdlet call on environment name: MyServer.MyDomain.net with resource id: 1(Name : MyServer.MyDomain.net) and key: WinRM_Http
2016-10-18T19:04:39.6644066Z ##[debug] Resource Username - MyDomain\TFS.2015
2016-10-18T19:04:39.6800894Z ##[debug]Get-ParsedSessionVariable cmdlet
2016-10-18T19:04:39.6800894Z ##[debug]InputSessionVariables=
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Publish-TestResults'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Convert-String'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Remove-Environment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-Environment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-ProviderData'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'New-OperationLog'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Register-Environment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Register-Provider'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Register-ProviderData'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Find-Files'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'.
2016-10-18T19:04:39.7737840Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Add-TaskIssue'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Complete-Task'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Find-Files'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Get-LocalizedString'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Set-TaskProgress'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Set-TaskVariable'.
2016-10-18T19:04:39.7737840Z ##[debug]Exporting cmdlet 'Write-TaskDetail'.
2016-10-18T19:04:39.7737840Z ##[debug]Processing: ##vso[task.setprogress value=-1;]
2016-10-18T19:04:39.7737840Z Deployment started for machine: 'MyServer.MyDomain.net:5985'
2016-10-18T19:04:39.7737840Z
2016-10-18T19:04:39.7737840Z
2016-10-18T19:04:39.8050370Z ##[debug]fqdn = MyServer.MyDomain.net
2016-10-18T19:04:39.8050370Z ##[debug]port = 5985
2016-10-18T19:04:39.8050370Z ##[debug]scriptArguments = -serviceNames "Company.Product.Service1" -startupType Manual -waitTimeoutInSeconds 120 -killIfTimedOut true
2016-10-18T19:04:39.8050370Z ##[debug]protocolOption = -UseHttp
2016-10-18T19:04:39.8050370Z ##[debug]skipCACheckOption =
2016-10-18T19:04:39.8050370Z ##[debug]enableDetailedLogging = true
2016-10-18T19:04:39.8206616Z ##[debug]Initiating deployment on MyServer.MyDomain.net
2016-10-18T19:04:39.8206616Z ##[debug]Begin Invoke-PsOnRemote
2016-10-18T19:04:39.8206616Z ##[debug]Input param MachineDnsName : MyServer.MyDomain.net
2016-10-18T19:04:39.8206616Z ##[debug]Input param ScriptPath :
2016-10-18T19:04:39.8206616Z ##[debug]Input param InitializationScriptPath :
2016-10-18T19:04:39.8206616Z ##[debug]Input param User : \MyDomain\TFS.2015
2016-10-18T19:04:39.8206616Z ##[debug]Input param SkipCACheck : False
2016-10-18T19:04:39.8206616Z ##[debug]Input param UseHttp : True
2016-10-18T19:04:39.8206616Z ##[debug]Input param WinRMPort : 5985
2016-10-18T19:04:39.8206616Z ##[debug]Input param ScriptBlockContent : param(
2016-10-18T19:04:39.8206616Z [string][Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()] $serviceNames,
2016-10-18T19:04:39.8206616Z [string][Parameter(Mandatory=$true)][ValidateSet("Disabled", "Manual", "Automatic")] $startupType,
2016-10-18T19:04:39.8206616Z [int][Parameter(Mandatory=$true)] $waitTimeoutInSeconds,
2016-10-18T19:04:39.8206616Z [string][Parameter(Mandatory=$true)] $killIfTimedOut
2016-10-18T19:04:39.8206616Z )
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z [string[]] $servicesNamesArray = ($serviceNames -split ',' -replace '"').Trim()
2016-10-18T19:04:39.8206616Z $presentServicesArray = Get-Service | Where-Object { $servicesNamesArray -contains $_.Name }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z if ($servicesNamesArray.Length -ne $presentServicesArray.Length)
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z $missingServiceNames = $servicesNamesArray | Where-Object { $presentServicesArrayNames -notcontains $_ }
2016-10-18T19:04:39.8206616Z Write-Verbose "No such services: $missingServiceNames."
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z if ($presentServicesArray.Length -eq 0)
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z return
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z try
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z $presentServicesArray | % { Set-Service -Name $_.Name -StartupType $startupType -ErrorAction SilentlyContinue }
2016-10-18T19:04:39.8206616Z $presentServicesArray | Where-Object { $_.Status -ne "Stopped" } | % { $_.Stop() }
2016-10-18T19:04:39.8206616Z $ErrorActionPreference = "SilentlyContinue" # I don't want the wait for status to throw in the case of a timeout
2016-10-18T19:04:39.8206616Z $presentServicesArray | % { $_.WaitForStatus("Stopped", [TimeSpan]::FromSeconds($waitTimeoutInSeconds)) }
2016-10-18T19:04:39.8206616Z $ErrorActionPreference = "Stop"
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:39.8206616Z Catch
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z $ErrorActionPreference = "Stop"
2016-10-18T19:04:39.8206616Z if ($killIfTimedOut -eq "false")
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z $errorMessage = $_.Exception.Message
2016-10-18T19:04:39.8206616Z Write-Verbose $errorMessage
2016-10-18T19:04:39.8206616Z throw
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z $nonStoppedServices = $presentServicesArray | Where-Object { $_.Status -ne "Stopped" } | % { $_.ServiceName }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z $nonStoppedServices | % { Write-Verbose "Killing service after not stopping within timeout: $_" }
2016-10-18T19:04:39.8206616Z
2016-10-18T19:04:39.8206616Z (get-wmiobject win32_Service | Where-Object { $nonStoppedServices -contains $_.Name }).ProcessID | % { Stop-Process -Force $_ }
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:39.8206616Z Finally
2016-10-18T19:04:39.8206616Z {
2016-10-18T19:04:39.8206616Z $presentServicesArray | % { Set-Service -Name $_.Name -StartupType $startupType }
2016-10-18T19:04:39.8206616Z }
2016-10-18T19:04:43.6535337Z ##[debug]End Invoke-PsOnRemote
2016-10-18T19:04:43.6535337Z ##[debug]Finished Deployment operation on MyServer.MyDomain.net:5985
2016-10-18T19:04:43.6691619Z ##[debug]Deployment logs for Deployment operation on MyServer.MyDomain.net:5985
2016-10-18T19:04:43.6691619Z ##[debug]
2016-10-18T19:04:43.6691619Z Deployment started on target machine...
2016-10-18T19:04:43.6691619Z
2016-10-18T19:04:43.6691619Z System.AggregateException: Failed to create working directory on the machine. Consult the logs below for details of the error.
2016-10-18T19:04:43.6691619Z An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6691619Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6691619Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func`1 action)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)
2016-10-18T19:04:43.6691619Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.SetWorkingDirectory(IPowerShell powerShellSession, String machineName, Int32 powershellPort, String tempMofDirectory)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession)
2016-10-18T19:04:43.6691619Z ---> (Inner Exception #0) System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6691619Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6691619Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func`1 action)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)<---
2016-10-18T19:04:43.6691619Z
2016-10-18T19:04:43.6691619Z
2016-10-18T19:04:43.6691619Z ##[debug]Service logs for Deployment operation on MyServer.MyDomain.net:5985
2016-10-18T19:04:43.6691619Z ##[debug]RemoteDeployerSource Verbose: 10 : [RemoteDeployer][18:out:16:17:4:41:3072; 3156, 4](MyServer)Creating public key for communication
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer][18:out:16:17:4:41:3072; 3156, 4](MyServer)Created public key for communication
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 12 : [RemoteDeployer][18:out:16:17:4:41:3228; 3156, 4](MyServer)Deployment service - VisualStudioRemoteDeployer86c6b085-5c66-4d80-9af3-de448304243c is running...
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer][18:out:16:17:4:42:3447; 3156, 6](MyServer)Input file found
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer][18:out:16:17:4:42:3447; 3156, 6](MyServer)Reading input parameters
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer][18:out:16:17:4:42:3447; 3156, 6](MyServer)Finished reading input parameters
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 7 : [RemoteDeployer][18:out:16:17:4:42:3760; 3156, 6](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Executing specified action. ScriptNull= False,. AzureStorageNull: True
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1222012 : [RemoteDeployer][18:out:16:17:4:42:3916; 3156, 6](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)deploymentMachine.MachineName: localhost.
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221727 : [RemoteDeployer][18:out:16:17:4:42:3916; 3156, 6](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)ApplicationPath:
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer][18:out:16:17:4:42:4072; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Establishing local powershell session on the machine
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer][18:out:16:17:4:42:5947; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Finished establishing local powershell session on the machine
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221661 : [RemoteDeployer][18:out:16:17:4:42:5947; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Starting Run Dsc on the machine:localhost, powershell port: 5985.
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221666 : [RemoteDeployer][18:out:16:17:4:42:5947; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Executing commands to set execution policy and set global variables.
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1222014 : [RemoteDeployer][18:out:16:17:4:42:6103; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)GetDeploymentScript:: applicationPath:
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Information: 1221667 : [RemoteDeployer][18:out:16:17:4:42:6103; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Machine:localhost Port:5985 => Creating Working Directory and setting it as the current directory.
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Verbose: 1221675 : [RemoteDeployer][18:out:16:17:4:42:7353; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Finished retrying 1 out of 3 times for exception: System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6691619Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6691619Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6691619Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6691619Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6691619Z RemoteDeployerSource Error: 1221741 : [RemoteDeployer][18:out:16:17:4:42:7353; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)System.AggregateException: Failed to create working directory on the machine. Consult the logs below for details of the error.
2016-10-18T19:04:43.6691619Z An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6847859Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6847859Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func`1 action)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)
2016-10-18T19:04:43.6847859Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.SetWorkingDirectory(IPowerShell powerShellSession, String machineName, Int32 powershellPort, String tempMofDirectory)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession)
2016-10-18T19:04:43.6847859Z ---> (Inner Exception #0) System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6847859Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6847859Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func`1 action)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)<---
2016-10-18T19:04:43.6847859Z
2016-10-18T19:04:43.6847859Z RemoteDeployerSource Information: 1221662 : [RemoteDeployer][18:out:16:17:4:42:7353; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Cleaning temporary Mof Folder
2016-10-18T19:04:43.6847859Z RemoteDeployerSource Verbose: 1221675 : [RemoteDeployer][18:out:16:17:4:42:7353; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Finished retrying 1 out of 3 times for exception: System.Management.Automation.CmdletProviderInvocationException: An object at the specified path C:\Users\TFS~1.201 does not exist. ---> System.Management.Automation.PSArgumentException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeThePath(String basepath, Stack`1 tokenizedPathStack)
2016-10-18T19:04:43.6847859Z at Microsoft.PowerShell.Commands.FileSystemProvider.NormalizeRelativePathHelper(String path, String basePath)
2016-10-18T19:04:43.6847859Z --- End of inner exception stack trace ---
2016-10-18T19:04:43.6847859Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Execute>b__0()
2016-10-18T19:04:43.6847859Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action)
2016-10-18T19:04:43.6847859Z RemoteDeployerSource Warning: 1211677 : [RemoteDeployer][18:out:16:17:4:42:7353; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Unable to clean-up the temp mof folder - An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.6847859Z RemoteDeployerSource Verbose: 1221778 : [RemoteDeployer][18:out:16:17:4:42:7510; 3156, 4](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Disposing the remote session
2016-10-18T19:04:43.6847859Z RemoteDeployerSource Verbose: 8 : [RemoteDeployer][18:out:16:17:4:42:7510; 3156, 6](MyServer.MyDomain.net:5985-86c6b085-5c66-4d80-9af3-de448304243c)Completed specificed action. Result: Failed
2016-10-18T19:04:43.6847859Z
2016-10-18T19:04:43.6847859Z
2016-10-18T19:04:43.6847859Z ##[debug]Deployment failed on machine 'MyServer.MyDomain.net:5985' with following message : 'System.Exception: An object at the specified path C:\Users\TFS~1.201 does not exist.'
2016-10-18T19:04:43.7004123Z ##[debug]Processing: ##vso[task.logissue type=error;]Microsoft.PowerShell.Commands.WriteErrorException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.7004123Z ##[error]Microsoft.PowerShell.Commands.WriteErrorException: An object at the specified path C:\Users\TFS~1.201 does not exist.
2016-10-18T19:04:43.7004123Z Error returned from remote deployment.
2016-10-18T19:04:43.7160348Z ##[error]PowerShell script completed with 1 errors.
2016-10-18T19:04:43.7160348Z ##[section]Finishing: Stop Windows Service: $(BackendServiceName)
Hello there,
We are getting this exception trying to stop one windows service that does not exists:
What are the requirements for an OnPremises server to run this task ? Powershell Version ? MSF Version ?
Bruno