Reputation: 8153
How can I set this value in YAML? This is from Azure devops pipeline
EDIT: There is a powershell version below the same UI(Preferred PowerShell Version), the question is not about that.
Upvotes: 0
Views: 1433
Reputation: 222532
You can just set it as,
steps:
- task: AzurePowerShell@4
displayName: 'Azure PowerShell script: FilePath'
inputs:
azureSubscription: 'Azure Demo'
preferredAzurePowerShellVersion: 1.0.0
However you should be able to see the relevant YAML code by clicking on the YAML
Upvotes: 1