0

How can I set this value in YAML? This is from Azure devops pipeline enter image description here

EDIT: There is a powershell version below the same UI(Preferred PowerShell Version), the question is not about that.

Blue Clouds
  • 7,295
  • 4
  • 71
  • 112

2 Answers2

1

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

enter image description here

Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
1

It is set in "@4"

- task: AzurePowerShell@4
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112