Azure DevOps CI/CD Pipeline - Deploy SSRS reports, use KeyVault parameterize Data Source Connection

Viewed 35
1 Answers

You can try to create a variable group and Link secrets from an Azure key vault, you can store your Data Source Connection with different variables (Dev, Test & Prod ), then you can use the variables to replace the Data Source connection string in the config file using Replace Tokens or Replace Text in Source Files extension.

Just try to install the extensions, then add the task to replace the Data Source Connection from the config file using the specific variable before the Deploy MS SQL SSRS Report task.

For example, add 3 stages to deploy to Dev, Test & Prod environments separately. Every time it will load the default config file, and replace the string to it for further using.

Reference Azure pipeline with multiple environments

Related