You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working directory is not the same. On Linux it is the $(Build.SourcesDirectory) on Windows it seems the directory of the task itself, which makes no sense IMHO. (D:\a_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.0.12)
On Linux the task runs Set-AzContext -SubscriptionId... which it seems not to do on Windows. It has probably something to to with Azure PowerShell v4 task is not setting Azure Context in Linux #10359. The problem here is that the task generates an error when the Service Connection has a scope level of "ManagemetGroup". However the task runs, with the same Service Connection, without any error on a Windows agent.
Can the task please changed in a way that it behaviors the same on Linux and Windows so the task does not making the whole pipeline to fail just because the agent is changed form Linux to Windows (or wise versa).
Thanks.
The text was updated successfully, but these errors were encountered:
@MisinformedDNA
The support of PowerShell core in Windows for task AzurePowerShellV4 is recently added. It will take at least 3-4 weeks to get deployed.
Merged PR : #11326
Bug
Type: completely different behavior on Windows and non-Windows agents
Enter Task Name: Azure PowerShell
Environment
Issue Description
The task has a very different behavior on Windows and non-Windows agents which is very weird.
I noticed the following:
Set-AzContext -SubscriptionId...
which it seems not to do on Windows. It has probably something to to with Azure PowerShell v4 task is not setting Azure Context in Linux #10359. The problem here is that the task generates an error when the Service Connection has a scope level of "ManagemetGroup". However the task runs, with the same Service Connection, without any error on a Windows agent.Can the task please changed in a way that it behaviors the same on Linux and Windows so the task does not making the whole pipeline to fail just because the agent is changed form Linux to Windows (or wise versa).
Thanks.
The text was updated successfully, but these errors were encountered: