I am using linux build agent to run azure powershell task for deployment. When the task gets executed I get following error
"The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell."
I get the same error even when I reduce the script down to print just "hello world".
My impression was that "Azure powershell task" is cross platform. But that's not what the error says or at least that's what I can interpret.
Any ideas what this issue is, any help will be greatly appreciated.