title: Unable to deploy Azure ARM with parameters using az cli from powershell script
body: <p>Trying simple deployment with parameters from a PS script:</p>
  <pre><code>$prefix = &quot;xxx&quot;
  $location = &quot;switzerlandnorth&quot;
  az deployment group create `
      --name  $timestamp  `
      --resource-group $resourceGroupName `
      --mode incremental `
      --verbose `
      --template-file .\src\ops\scripts\arm.json `
      --parameters &quot;{ `&quot;location`&quot;: { `&quot;value`&quot;: `&quot;$location`&quot; },`&quot;projectPrefix`&quot;: { `&quot;value`&quot;: `&quot;$prefix`&quot; } }&quot;
  
  
  </code></pre>
  <p>Response with error:</p>
  <pre><code>Unable to parse parameter: { location: { value: switzerlandnorth }, projectPrefix: { value: xxx } }
  </code></pre>
  <p><strong>Running from a PS1 script</strong>.</p>