Mar 22 2023
05:55 AM
- last edited on
Mar 05 2024
02:33 PM
by
TechCommunityAP
Mar 22 2023
05:55 AM
- last edited on
Mar 05 2024
02:33 PM
by
TechCommunityAP
Hello,
This is giving invalid key vault name. Does Azure key vault task accepts expression. If not then how to pass the value to azure key vault in such scenario
variables:
- group: env_map
- name: qaNamespace
value: $[coalesce(variables[variables['Build.SourceBranch']], '')]
- task: AzureKeyVault@2
displayName: Download Secrets from Key Vault
inputs:
azureSubscription: ${{parameters.azureSubscription}}
KeyVaultName: replace(replace(replace(variables['qaNamespace'], 'a', 'vault1'), 'b', 'vault2'), 'c', 'vault3')
SecretsFilter: 'PASSWORD,UserID'
RunAsPreJob: false