title: Cannot download template file from Azure Storage in PowerShell Runbook
body: <p>I want to deploy a Data Science VM automatically in a powershell runbook. To do so, I use the <code>New-AzResourceGroupDeployment</code> command and specify the parameter files in the <code>-ParameterUri</code> and <code>-TemplateParameterUri</code>. Unfortunately, powershell cannot download these files to use them. The Error Message is:</p>
  
  <blockquote>
    <p>New-AzResourceGroupDeployment : 12:25:28 PM - Error:
    Code=InvalidContentLink; Message=Unable to download deployment 
    content from
    '<a href="https://[SAName].blob.core.windows.net/automation/WindowsVirtualMachine.json" rel="nofollow noreferrer">https://[SAName].blob.core.windows.net/automation/WindowsVirtualMachine.json</a>'.
    The tracking Id is  '56714bef-f653-42bb-80e2-8d0842e2d94e'. Please see
    <a href="https://aka.ms/arm-deploy" rel="nofollow noreferrer">https://aka.ms/arm-deploy</a> for usage details.</p>
  </blockquote>
  
  <p>Part of my script: (The Deployment and ResourceGroupName are provided as well)</p>
  
  <pre><code>$TemplateUri = "https://[SAName].blob.core.windows.net/automation/WindowsVirtualMachine.json"
  $TemplateParameterUri = "https://[SAName].blob.core.windows.net/automation/WindowsVirtualMachine.parameters.json"
  New-AzResourceGroupDeployment -Name $ResourceGroupDeploymentName `
      -ResourceGroupName $ResourceGroupName `
      -TemplateUri $TemplateUri `
      -TemplateParameterUri $TemplateParameterUri `
      -Force
  </code></pre>
  
  <p>I just thougt that I have to give something like the Storage Account Context or something else to authorize powershell to access the files, isn't it? Perhaps there is some easier ways to reach my goal?</p>
  
  <p>Thanks in Advance!</p>