Adopted from "View YAML":

"arguments" is not working when build using .yml
Yes
2.140.0
OS of the machine running the agent?
Windows
VisualStudio.com
If VisualStudio.com, what is your account name? http://account.visualstudio.com
intentionaltest.visualstudio.com
steps:
Error:
build.yml (Line: 7, Col: 3): Unexpected value 'arguments'
@fernisoites the UI is busted for export to YAML, try the following script:
- task: powershell@2
inputs:
targetType: filePath
filePath: test.ps1
arguments: test
displayName: 'PowerShell Script'
I was facing the same issue this morning. @TingluoHuang solution did the trick for me !
We have created a new repository for all YAML related issues, please move the current issue to there.
https://github.com/Microsoft/azure-pipelines-yaml
closing since answered. if anything left to answer, see the point above about moving to azure-pipelines-yaml
Most helpful comment
@fernisoites the UI is busted for export to YAML, try the following script: