title: Delete all the resources but not the resource group using Azure CLI
body: <p>There is an <a href="https://stackoverflow.com/questions/63744842/azure-cli-delete-resource-without-deleting-resource-group">solution</a> in the Stack overflow that contains the commands for deleting the resources in a resource group but it's not working for us.</p>
  <p>In the Azure Cloud Shell,
  When using the command given from above link, getting the error as:</p>
  <p><code>unrecognized arguments: ConvertFron-Json Foreach-Object {az resource delete --ids /usr/bin/cloudshellhelp.id --verbose</code></p>
  <p>for the command: <code>az resource list --resource-group senthil-b-rg ConvertFrom-Json Foreach-Object {az resource delete --resource-group senthil-b-rg --ids $_.id --verbose}</code></p>
  <p>If I keep pipe (|) symbol in the command:</p>
  <pre><code>az resource list --resource-group senthil-b-rg \
  | ConvertFrom-Json | Foreach-Object {az resource delete --resource-group senthil-b-rg --ids $_.id --verbose}
  </code></pre>
  <p>Errors are</p>
  <pre><code>bash:ConvertFrom-Json: command not found
  bash: Foreach-Object: command not found
  Exception ignored in: &lt;_io.TextIOWrapper name='&lt;stdout&gt;' mode='w' encoding='utf-8'&gt;
  BrokenPipleError: [Errno 32] Broken pipe
  </code></pre>