title: azure cli not stopping on error in PS script
body: <p>Boiled down to the minimum I have a Powershell script that looks like this:</p>
  
  <pre><code>$ErrorActionPreference='Stop'
  az group deployment create -g ....
  # Error in az group
  # More az cli commands
  </code></pre>
  
  <p>Even though there is an error in the az group deployment create, it continues to execute beyond the error. How do I stop the script from executing on error?</p>