We are heavily leaning towards using the “configuration variables” instead of transforms.
The appSettings and connectionStrings sections are easy – however, I’m not seeing an out-of-the-box way to replace web service endpoint point addresses. I saw some older posts but wasn’t sure if a custom PowerShell script is still the way to do this.
Basically, I need the endpoint address replacement to work like the appSetting and connectionString sections: OD variable name matched on the unique endpoint name, and the address is the value, and scope is applied.
Does this exist? Or is there a Powershell script out there that does it already?
Thanks for getting in touch! There are three ways to replace variables in a config for anything outside of appSettings and connectionStrings.
Those are:
Use the Substitute variables in files feature and hard code the values to replace with Octopus Variables.
Use this library script https://library.octopusdeploy.com/#!/step-template/actiontemplate-file-system-find-and-replace
Or create a powershell script.
There are pros and cons to each. Some customers don’t like the first because it breaks the config locally.
Vanessa