This used to work, must be broken by some update I think.
The task IIS Web App deployment deploys a webdeploy package to a remote IIS server using WinRM over http. For some reason, it intermittently fails with the only error message being the following:
2016-12-12T20:13:07.3015505Z Status : Failed
2016-12-12T20:13:07.3015505Z DeploymentLog :
2016-12-12T20:13:07.3015505Z Deployment started on target machine...
2016-12-12T20:13:07.3015505Z
2016-12-12T20:13:07.3015505Z System.AggregateException: Failed to execute the
2016-12-12T20:13:07.3015505Z powershell script. Consult the logs below for details of
2016-12-12T20:13:07.3015505Z the error.
2016-12-12T20:13:07.3015505Z doesn't exists. --->
2016-12-12T20:13:07.3015505Z System.Management.Automation.RuntimeException: doesn't
2016-12-12T20:13:07.3015505Z exists. --->
2016-12-12T20:13:07.3015505Z System.Management.Automation.RuntimeException: doesn't
2016-12-12T20:13:07.3015505Z exists.
2016-12-12T20:13:07.3015505Z --- End of inner exception stack trace ---
2016-12-12T20:13:07.3171788Z at System.Management.Automation.Runspaces.PipelineBase.I
2016-12-12T20:13:07.3171788Z nvoke(IEnumerable input)
2016-12-12T20:13:07.3171788Z at System.Management.Automation.PowerShell.Worker.Constr
2016-12-12T20:13:07.3171788Z uctPipelineAndDoWork(Runspace rs, Boolean
2016-12-12T20:13:07.3171788Z performSyncInvoke)
2016-12-12T20:13:07.3171788Z at System.Management.Automation.PowerShell.Worker.Create
2016-12-12T20:13:07.3171788Z RunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2016-12-12T20:13:07.3171788Z at System.Management.Automation.PowerShell.CoreInvokeHel
2016-12-12T20:13:07.3171788Z per[TInput,TOutput](PSDataCollection`1 input,
2016-12-12T20:13:07.3171788Z PSDataCollection`1 output, PSInvocationSettings settings)
2016-12-12T20:13:07.3171788Z at System.Management.Automation.PowerShell.CoreInvoke[TI
2016-12-12T20:13:07.3171788Z nput,TOutput](PSDataCollection1 input, PSDataCollection
1
2016-12-12T20:13:07.3171788Z output, PSInvocationSettings settings)
2016-12-12T20:13:07.3171788Z at
2016-12-12T20:13:07.3171788Z System.Management.Automation.PowerShell.Invoke(IEnumerable
2016-12-12T20:13:07.3171788Z input, PSInvocationSettings settings)
2016-12-12T20:13:07.3171788Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3171788Z loyer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<
2016-12-12T20:13:07.3171788Z Invoke>b__0()
2016-12-12T20:13:07.3328025Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3328025Z loyer.Utilities.RetryExecutor.<>c__DisplayClass19_0`1.<Exec
2016-12-12T20:13:07.3328025Z ute>b__0()
2016-12-12T20:13:07.3328025Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3328025Z loyer.Utilities.RetryExecutor.Execute(Action action)
2016-12-12T20:13:07.3328025Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3328025Z loyer.Utilities.RetryExecutor.Execute[T](Func`1 action)
2016-12-12T20:13:07.3328025Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3328025Z loyer.Deployment.PowershellExecutor.Invoke(String
2016-12-12T20:13:07.3328025Z errorContextMessage, Boolean writeResultToLog, Boolean
2016-12-12T20:13:07.3484301Z isCancellable, ActionPreference errorActionPreference)
2016-12-12T20:13:07.3484301Z --- End of inner exception stack trace ---
2016-12-12T20:13:07.3484301Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3484301Z loyer.Deployment.PowershellExecutor.Invoke(String
2016-12-12T20:13:07.3484301Z errorContextMessage, Boolean writeResultToLog, Boolean
2016-12-12T20:13:07.3484301Z isCancellable, ActionPreference errorActionPreference)
2016-12-12T20:13:07.3484301Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3484301Z loyer.Deployment.ScriptExecutor.ExecuteScript(IPowerShell
2016-12-12T20:13:07.3484301Z powerShell, String script, String arguments, Boolean
2016-12-12T20:13:07.3484301Z isScriptDotSourced, Boolean useHttp)
2016-12-12T20:13:07.3484301Z at Microsoft.VisualStudio.Services.DevTestLabs.RemoteDep
2016-12-12T20:13:07.3484301Z loyer.Deployment.DeploymentService.RunPowerShellScripts(Dep
2016-12-12T20:13:07.3484301Z loymentMachineSpecification deploymentMachine,
2016-12-12T20:13:07.3484301Z ScriptSpecification scriptSpecification,
2016-12-12T20:13:07.3484301Z ScriptSpecification initializationScriptSpecification,
2016-12-12T20:13:07.3484301Z String applicationPath, IPowerShell powerShellSession)
2016-12-12T20:13:07.3484301Z ---> (Inner Exception #0)
2016-12-12T20:13:07.3484301Z System.Management.Automation.RuntimeException: doesn't
2016-12-12T20:13:07.3484301Z exists. --->
2016-12-12T20:13:07.3484301Z System.Management.Automation.RuntimeException: doesn't
2016-12-12T20:13:07.3484301Z exists.
2016-12-12T20:13:07.3640581Z --- End of inner exception stack trace ---
2016-12-12T20:13:07.3640581Z at System.Management.Automation.Runspaces.PipelineBase.I
2016-12-12T20:13:07.3640581Z nvoke(IEnumerable input)
2016-12-12T20:13:07.3640581Z at System.Management.Automation.PowerShell.Worker.Constr
2016-12-12T20:13:07.3640581Z uctPipelineAndDoWork(Runspace rs, Boolean
2016-12-12T20:13:07.3640581Z performSyncInvoke)