Endpoint Address Replacement


I’m just wondering if the best way to replace web service endpoint point addresses is by writing a powershell script similar to the solution offered here::


or have you guys managed to come up with a custom solution in the meantime?

I am trying to replace an endpoint address in a config file based on its name.

Many thanks,


Hi Sean,

Thanks for getting in touch! Our recommended (and the easiest) approach to replace values in a config file is to use the built-in variable substitution feature. The following steps outline the process to configure variable substitution.

  1. Create your project variable with its value being your endpoint address
  2. Insert the variable name into your config file (where you want it replaced) in the format #{VariableName}
  3. Enable the substitute variables in files feature in your package step and specify the target config file

You can refer to more info on enabling this feature in your package step in our documentation.

Additionally, more info on variable substutition can be found here.

I hope this helps! Don’t hesitate to reach out if you have any further questions.

Best regards,