question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Powershell - Set workingFolder

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bryanmacfarlanecommented, Apr 21, 2016

@ericsciple - let’s add this.

1reaction
jpooncommented, Aug 24, 2016

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Powershell - Set workingFolder · Issue #1148 - GitHub
Use Case: I am trying to download assets from Azure Blob storage to the build machines. From my build logs, the working directory...
Read more >
Set-Location (Microsoft.PowerShell.Management)
This command sets the current location to the root of the HKLM: drive. Example 2: Set the current location and display that location....
Read more >
how to call a powershell script of another directory in azure ...
It looks that workingDirectory is just appended to a script name without changing root directory. You can overcome this calling script ...
Read more >
In-Depth Guide to Building a PowerShell Pipeline in Azure ...
If not set to true, the task will default to Windows PowerShell on Windows pipeline agents. workingDirectory, No, All, $(Build.SourcesDirectory) ...
Read more >
Azure Pipeline PowerShell@2 Task can't run 'invoke-build ...
I'm trying to build a powershell module in an Azure pipeline (dev.azure.com). ... I set the debug flag to true to see if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found