Hello @Giri, Seshu ,
Thanks for the question and using MS Q&A platform.
I understand you want to parameterize the URL in a web activity for different environments.
I think the easiest solution, is to use Global Parameters, in this case.
A global parameter is made available to any and all pipelines in a Factory. When you change the value of a global parameter, it then affects ALL places it is used.
You can make the global parameters one of the things you set when doing CI/CD or moving dev -> test -> prod.
There are a couple ways you could use it. The most straightforward is to store the appropriate URL , and then reference it in the web activity like
@concat(pipeline().globalParameter.KeyVaultURL , "secrets/SomeID?api-version=7.0) .
A more convoluted way, is to store a lablel indicating which environment this is. Then in the web activity URL you could put an expression like
eq( "prod" , pipeline().globalParameter.environment ),
I personally recommend the simpler method.
There is a way to set the URL itself as something to parameterize in the ARM template, but this would effect ALL web activities, not just this one. Thus I recommend the global parameter route.
Please do let me if you have any queries.
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators