Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
in order to run Copy activity in QA and Dev from one pipeline using following option
environment with possible values "dev" or "qa"environment parameterHow we can set variable based on (screenshot pls)
environment parameterand how we can run this based on QA and DEV(screenshot apprciated)
You can create variables and use expressions to set their values based on the environment parameter ("dev" or "qa") using the following approach:
environment. Set the possible values to "dev" and "qa".ServerName and DatabaseName.ServerName and DatabaseName based on the environment parameter.ServerName:
@if(equals(pipeline().parameters.environment, 'dev'), 'dev-server-name', 'qa-server-name')
Similarly, for DatabaseName:
@if(equals(pipeline().parameters.environment, 'dev'), 'dev-database-name', 'qa-database-name')
@variables('ServerName')
and
@variables('DatabaseName')
If you have any questions or need further explanation on any part, feel free to ask!