Library set variables within powershell deploy.ps1

I am trying to use a variable which is defined within a variable set.

So assuming the variable set value is Environment.VariableName

I would have thought

$OctopusParameters[“Environment.VariableName”]

would work correctly.

I can however use project level variables within the script.

Is this a limit or does a workaround. solution exist?

As is always the way, resolved this the moment I posted!

Badly scoped variable.

Hi Shaun,

Thanks for getting in touch and clarifying your resolution! Please don’t hesitate to reach out if you have any further questions or concerns in the future. :slight_smile:

Best regards,

Kenny

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.