Closed damienmartel2 closed 2 years ago
Hey @damienmartel2.
az is a powershell script now:
PS > Get-Content (Get-Command az).Source
$env:AZ_INSTALLER="MSI"
& "$PSScriptRoot\..\python.exe" -IBm azure.cli $args
az account list - should work
Ok the problem is Azure Cli has been updated and so now there is an az.ps1 so i need to make "az.cmd" in order to continue to call the good program...
sorry @al-cheb i didn't show your answer. It's exactly that ;) thanks
Description
In a powershell task i am using the code :
Without changes the pipeline now fails with this error
It seems to have an issue with the command az...
Platforms affected
Runner images affected
Image version and build link
20220911.1
Is it regression?
yes it worked with 20220905.1
Expected behavior
The command is ok or an error message or an alternative
Actual behavior
The command fails
Repro steps
Create a pipeline executed on the runner image version 20220911.1
create a powershell task inline with comand : $arg = "account list" $process = Start-Process -NoNewWindow -FilePath "az" -ArgumentList $arg -Wait -PassThru
you will have the error