title: How to pass variables between templates - ARM json
body: <p>I'm looking for a way to pass a variable (normal string) from a linked template back up to my main template.</p>
  
  <p>I want to use something like: (in linked template)</p>
  
  <pre><code> "outputs": {
    "installStringNodes": {
      "type": "string",
      "value": "[variables('installString').value]"
    }
  }    
  </code></pre>
  
  <p>And then i want to call this variable into my main template. But i can't seem to crack how.</p>
  
  <pre><code>"variables":{
     "installStringFromNodeResources": {
        "value": "[??('node-resources')??.outputs.installStringNodes.value]"
      },
  }
  </code></pre>
  
  <p>There's a 'sharing state in resource manager templates' doc with the usage of reference() but apparently that can't be used in variables as it gives me an error while trying to deploy.
  Seems to me there should be an easy solution for this but i haven't been able to see it yet..</p>