title: JsonToken EndObject error with nested Template
body: <p>I'm trying to create a nested template which would do encryption using recovery vault in Azure.</p>
  
  <p>When I attempt to run the main template I get the following error, I'm not sure how to drill down into resources[3].resources.</p>
  
  <pre><code>New-AzureRmResourceGroupDeployment : JsonToken EndObject is not valid for 
  
  closing JsonType Array. Path 'resources[3].resources', line 533, position 6.
  At line:17 char:1
  + New-AzureRmResourceGroupDeployment -Name "ThreeDeployment" -ResourceG ...
  </code></pre>
  
  <p>The full template is at
  <a href="https://pastebin.com/embed_iframe/6ySqyhtH" rel="nofollow noreferrer">https://pastebin.com/embed_iframe/6ySqyhtH</a></p>
  
  <p>I've checked the template and it seems to be ok, although I could be wrong :(</p>
  
  <p>I've been fololwing a previous question\answer on
  <a href="https://stackoverflow.com/questions/43884921/azure-arm-json-template-add-vm-to-recovery-services-vault-in-different-resourc">Azure ARM JSON template - Add VM to Recovery Services Vault in different Resource Group</a></p>
  
  <p>Thanks in advance and I'm sure I should be somewhere better on new years eve :)</p>