0

I have some existing ADO YAML pipelines. They are using AzurePowerShell@4 task. But the latest version of this task is AzurePowerShell@5 . I have checked on the internet but I couldn't find their difference.

Does anyone have an idea?

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
MoonHorse
  • 1,966
  • 2
  • 24
  • 46

1 Answers1

2

You can see the code of AzurePowerShell@4 here, and of AzurePowerShell@5 here.

Accurint to the code the @5 created because of this issue.

Over time it seems that version 4 is also updated and maintained, not sure there is much different, but just check the code :)

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
  • 1
    Thanks @shayki, your remark to 'this issue' solved my problem too. By using `AzurePowerShell@5` I overcame my issue https://stackoverflow.com/questions/73950059/ado-release-pipeline-azurepowershell-task-fails-on-connect-azaccount – Herbert Oct 05 '22 at 17:44