Variables Substitution in Config Files

Hello,

Are variables such as “#{Octopus.Machine.Name}” automatically replaced in config files?

So, for example, would this work by default:

@@@

<patch:attribute name=“value”>#{Octopus.Machine.Name}</patch:attribute>

@@@

Or do we need to setup the “Variable Substitution in Files” setting for our deployment step?

Hi Stefan,

Thanks for your post!

Yeah you need to set the Variable Substitution in Files setting for Octopus to know where to find variables to replace, even our own!

Hope this helps.
Vanessa