I am trying to run a Powershell script on a remote machine via ssh. I have configured Azure release but I am getting a very strange error.
This is how my config file looks like
steps:
- task: SSH@0
displayName: 'Run shell script on remote machine'
inputs:
sshEndpoint: 'Dev SSH service'
failOnStdErr: false
runOptions: script
scriptPath: '$(Build.SourcesDirectory)/Pipelines/Scenarios/test.ps1'
readyTimeout: '20000'
This is what my Powershell script looks like:
Write-Host "Hello, World!"
The remote computer is configured with ssh via PowerShell.
I am getting the error as shown in the picture

Transcription:
tr -d '\015' <./test.ps1> ./test.ps1._unix
##[error]At line:1 char:14
##[error]+ tr -d '\015' <./test.ps1> ./test.ps1._unix
##[error]The '<' operator is reserved for future use.
##[error] + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
##[error] + FullyQualifiedErrorId : RedirectionNotSupported
##[error]Error: Command tr -d '\015' <./test.ps1> ./test.ps1._unix exited with code 1.
sh) script which attempts to translate the line endings from Windows CRLF to Unix LF-only conventions. Only the admin of that system can really tell you what's going on, though perhaps this is something Microsoft does. (It would not be surprising, other than in that usually they would force you to use Windows when you don't want to, rather than the opposite.)scriptmeans shell script andcommandsmeans Powershell, but I am only inferring from what you are reporting here; I have no familiarity with Azure.