I have been following this Microsoft doc and created a release pipeline in YAML, all works fine.
I have a conditional step that works fine as well:
- ${{ if contains(parameters.environment, 'PROD') }}:
Now requirement changed a bit, and the same conditional step requires checking against multiple values.
For if this contains PROD or UAT is true.
I have been reading different places and tried the following without luck:
- ${{ or(if contains(parameters.environment, 'PROD'), if contains(parameters.environment, 'UAT')) }}:
- ${{ if contains(parameters.environment, 'PROD', 'UAT') }}:
Any idea if this is possible and how to solve it? much appreciated