'How to replace a token with different values for different machines?

I use TFS 2018 Update 2 as CI/CD server. And I use Replace Token task as my token replacement solutions.

When I have a token A in my web.config file, and it will be deployed to 2 VMs, VM B and VM C, by my tfs release definition.

If I need token A on VM B as Value V1 and token A on VM C as Value V2.

How to do this via Replace Tokens task? My idea is using a powershell task to update variable A just prior to Replace Token task. Is this possible?

Please kindly provide or share your idea , it will helps me a lot.

thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source