So I have a sql user I want to use in my pipeline. Lets say username is "fred", password is "myPass". I store sql passwords in key vault, with a secret named afther the usernames. So for in the above case, secret name would be "fred"
In a pipeline template I am creating, I am passing sql username as a parameter MySqlUser, so I can fetch sql username as ${{parameters.MySqlUser}}
After fetching secrets using task: AzureKeyVault@2
, I can access fred's password by using $(fred)
, but if I try to use the input parameter instead of hardcoded sql username $(${{parameters.MySqlUser}})
I get the error.
How do i "nest" parameter in there?