Azure Resource Group Template Array Parameters Issues

I’ve Octopus 3.8.8 and using Azure Resource Manager Template step to deploy my ARM template. My ARM template has 2 parameters, string and array and I am trying to use Octopus variables as these parameter values. However, when I enter variable names and save the step, the variable are not saved.

Here is the parameter JSON:

"parameters": {
    "Environment": {
        "type": "string",
        "metadata": {
            "description": "Environment Name"
    "serviceBusTopicName": {
        "type": "array",
        "metadata": {
            "description": "Array containing Topic Names"

And attached image contain how the variables are defined.

Please help!

Hi Naveed,

Thanks for getting in touch! We’ve done some testing, and have found there’s a limitation with the parsing done in this way. We have opened up a GitHub issue which you can follow here:

The temporary workaround we’ve come up that seems to work in our testing:
Instead of your variable values holding the entire array, store only the value of the objects in your variables. Then you call it slightly differently. That would mean (based on your example screenshot) your array would look something like the following (while storing the object values in variables):

    {"TopicName": "#{topicName1}"},
    {"TopicName": "#{topicName2}"}

Sorry it’s not better news! Please let us know if you have any further questions.

Kind regards,