Hi I am using agent pool in azure pipeline, so i have multiple agents so i want to parameterize the pool name like shown below but when i do this i get an error as (Line: 11, Col: 9): A template expression is not allowed in this context
parameters:
- name: pool_name
displayName: agent pool location
type: string
default: test-ashish
trigger:
- none
pool:
name: ${{parameters.pool_name}}
demands:
- Location -equals EASTUS2
steps:
- script: |
echo "This job is only for testing"
echo $()
name: Test_Job
displayName: Test Job