cli dla command fails while running in DevOps release pipeline
Describe the bug I found another issue, same problem, command works in web terminal but it fails in DevOps release pipeline
To Reproduce run CLI command for DLA in powershell inside of DevOps Release Pipeline command: $dlaExists = az dla account list --subscription $SubscriptionId --query "[?contains(name, '$DataLakeAnalyticsName')].[name]" --output tsv
error output: 2020-07-14T13:09:25.7274118Z [command]C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'd:\a_temp\azureclitaskscript1594732156968.ps1'" 2020-07-14T13:09:33.8864291Z az : Command group 'dla' is in preview. It may be changed/removed in a future release. 2020-07-14T13:09:33.8872287Z At D:\a\r1\a\foldername\projectname\foldername\DataLake.ps1:65 char:15 2020-07-14T13:09:33.8873344Z + ... laExists = az dla account list --subscription '12345678-1234-1234-12 ... 2020-07-14T13:09:33.8874158Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-07-14T13:09:33.8875354Z + CategoryInfo : NotSpecified: (Command group '...future release.:String) [], RemoteException 2020-07-14T13:09:33.8876222Z + FullyQualifiedErrorId : NativeCommandError 2020-07-14T13:09:33.8876759Z 2020-07-14T13:09:33.9244178Z ##[error]Script failed with exit code: 1
Expected behavior this run in https://portal.azure.com/ using Cloud Shell
PS /home/username> $dlaExists = az dla account list --subscription 12345678-1234-1234-12 ... --query "[?contains(name, '$DataLakeAnalyticsName')].[name]" --output tsv Command group 'dla' is in preview. It may be changed/removed in a future release. PS /home/username>
Environment summary DevOps Release Pipeline, CLI in Powershell commands
Additional context seems to be the same issue as in this one I reported just a little while ago: https://github.com/Azure/azure-cli/issues/14116
add to S173
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
@matendie could help confirm the running command is az dla or az dls? The issue you linked is for dls but what you show is dla.
one more question is that when you run it in powershell, it works as expected, right?
I think it is because this command is in preview and the prompt preview information which is in stderr crashed powershell scripts. you could add --only-show-errors in your command or add 2> $null in your scripts to make sure the warning in stderr not crash your script.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @idear1203.