Can I create a batch of variables?

Hi everyone,

I am trying to find a quicker way of creating variables. Is there a way to create a batch of variables via a script or some other faster method besides manually creating them one by one?

Thanks in advance!

Hi Michael,

Thanks for getting in touch and sorry for the delay. I’m working on a script for this, but it’ll take me a bit longer cause i want to make it as re-usable as possible.

I’ll get back to you tomorrow, maybe even tonight.



Hi Michael,

Thanks a lot for the patience :). I’ve made the following script (with Henrik’s help) that will show you the basics of creating a new variable with scops using Powershell and the Octopus.client. Wrap it around a few foreach-s and you’ll be good to go to create variables in batches

Hope it helps!


Hi Dalmiro,

Thanks for getting back to me on this. We were also trying to put something together to make this work. We will check yours out.