I want to read from an octopus step but is it possible to make it dynamic? For example, I have a step that grabs the app insights key entitled Get AppInsights InstrumentationKey for WebApi
. I then read this into a variable using the following #{Octopus.Action[Get AppInsights InstrumentationKey for WebApi].Output.InstrumentationKey}
.
I want to have two steps called:
- Get AppInsights InstrumentationKey for WebApi EUN
- Get AppInsights InstrumentationKey for WebApi EUW
However, is it possible to then have the Octopus Action to read from the correlating step? For example, something like
#{Octopus.Action[Get AppInsights InstrumentationKey for WebApi #{Region}].Output.InstrumentationKey}
Not sure what the syntax would be.
Thanks, RR.