Similar to the Powershell VSO Build Agent, can we set the workingFolder when instantiating Azure Powershell?
Use Case:
I am trying to download assets from Azure Blob storage to the build machines. From my build logs, the working directory is set to wherever Azure Powershell lives.
2016-01-27T20:16:32.1304033Z Found 5 blob(s)
2016-01-27T20:16:32.1414028Z Downloading to C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\AzurePowerShell\1.0.8\
Workaround:
Use $PSScriptRoot to figure out where my script is and go from there.
currently no.
@ericsciple - let's add this.
I just uploaded the entire task directory up to blob storage accidentally because of this. $PSScriptRoot is a good work-around, but please add support. Thanks!
Added it to backlog Feature: 649929
@RoopeshNair What is backlog feature 649929? I presume this has been moved to a private VSTS. If that is the case, how can we (the community) be aware of what's going on with this issue?
Just stumbled upon the same issue, extremely irritating. This should be fixed asap, and if not then there has to be a big fat warning about this behaviour.
@yaananth @RoopeshNair
Any updates?
Not at this point in time, we haven't been able to get to this.
We do encourage contributions, if you are willing to help.
Most helpful comment
@ericsciple - let's add this.