parameters:
- name: environment
type: string
default: dev
- name: region
type: string
default: ${{ if or(eq(parameters.environment, 'dev'), eq(parameters.environment, 'tst')) }}central${{ else }}${{ if eq(parameters.environment, 'both') }}central, east${{ else }}east${{ endif }}${{ endif }}
I am putting condition as if the parameter environment is dev or test then the parameter region will be central and for other environments, the region will be central, east, both
But at the same time I am getting error as directive are not supported for the expression that are embedded