title: Why is Azure CLI reporting ResourceGroupNotFound when trying to run New-AzResourceGroupDeployment?
body: <p>I'm trying to create an Application Insights resource following the directions provided here: <a href="https://docs.microsoft.com/en-us/azure/azure-monitor/app/powershell" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/azure-monitor/app/powershell</a></p>
  
  <p>However, when I execute the command from the docs:</p>
  
  <pre><code>New-AzResourceGroupDeployment -ResourceGroupName Fabrikam -TemplateFile .\template1.json -appName myNewApp
  </code></pre>
  
  <p>Replacing Fabrikam my Resource Group Name, it throws ResourceGroupNotFound. If I list the Resource Groups with:</p>
  
  <pre><code>az group list
  </code></pre>
  
  <p>I can clearly see the Resource Group in the list, so I know I'm in the right subscription context.</p>
  
  <p>Any thing obvious that I'm missing?</p>
  
  <p>I've uploaded my version of template1.json already to the CLI storage.</p>