Using channels and variables

Octopus 3.12.0. I have just started trying to use channels but my library variables are not being defined.
According to https://octopus.com/docs/key-concepts/projects/channels#Channels-Variables
I should be able to scope variables to a channel, but I don’t get that option.

Under ‘Scope specificity’, here: https://octopus.com/docs/deploying-applications/variables/scoping-variables
it says ‘The target channel (if channels are enabled)’

How do I enable channel scoping for variables?

Mark

Hi Mark,

Thanks for getting in touch! Since channels are defined per project, only project variables can be scoped to channels. So library variables cannot be scoped to channels.

If you already have a number of variables created in a variable set, we have an example PowerShell script that may help. This will duplicate variables from a library variable set to a project. After running this, you can then scope your new project variables to your channels. :slight_smile:

I hope this helps! Let me know if you have any further questions.

Best regards,

Kenny

Thanks Kenny, I can work with that.

Mark