title: Passing secureObject array as VSTS variable
body: <p>I have an ARM template that deploys Key Vault and populates it with secrets. It does creates secrets, based on how many arrays are in the parameter secretsObject. For example if I have:</p>
  
  <pre><code>"secretsObject": {
    "type": "secureObject",
    "defaultValue": {
      "secrets": [
        {
          "secretName": "exampleSecret1",
          "secretValue": "secretVaule1"
        },
        {
          "secretName": "exampleSecret2",
          "secretValue": "secretValue2"
        }
      ]
    }
  }
  </code></pre>
  
  <p>The template will create 2 Secrets. So this is the line that I put into .parameters.json to deploy the template from Visual Studio:</p>
  
  <pre><code>        "secrets": [
        {
          "secretName": "exampleSecret1",
          "secretValue": "secretVaule1"
        },
        {
          "secretName": "exampleSecret2",
          "secretValue": "secretValue2"
        }
      ]
  </code></pre>
  
  <p>The problem is I can't figure out how to past such line into VSTS as a variable (to overwrite parameter). <a href="https://pastebin.com/XmwffVi3" rel="nofollow noreferrer">This is the ARM template I'm using</a></p>
  
  <pre><code>There were errors in your deployment. Error code: InvalidDeploymentParameterKey.
  One of the deployment parameters has an empty key. Please see https://aka.ms/arm-deploy/#parameter-file for details.
  Processed: ##vso[task.issue type=error;]One of the deployment parameters has an empty key. Please see https://aka.ms/arm-deploy/#parameter-file for details.
  task result: Failed
  Task failed while creating or updating the template deployment.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/sA5cd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sA5cd.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/tUBzY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tUBzY.png" alt="enter image description here"></a></p>