If I have a YAML Pipeline;
variables:
- name : myVariable
value : 'abcd'
and if I want to run some inline powershell - how can i access that value (abcd) in the powershell script;
I expected this to work - but it didnt;
- task: PowerShell@2
displayName: "Do the thing"
inputs:
targetType: 'inline'
script:
write-host $(myVariable)
