title: Remove/Delete all resources created while spinning a new VM through powershell
body: <p>I have created a VM through powershell using template.json file. These are the list of resource types which gets created.<br>
  1. Virtual Machine<br>
  2. Network Interface<br>
  3. Network Security group<br>
  4. Disk  </p>
  
  <p>Now,what I do is update some apps on the newly created VM, generalize the VM and create an Image of the new VM. Till here I'm able to do it through powershell.  </p>
  
  <p>Now my requirement is to delete all the resources created during spinning the VM. I know the cmdlet to remove the VM is this.  </p>
  
  <pre><code>Remove-VM -Name "new 2" -Force
  </code></pre>
  
  <p>Is there any single command to do this task?  </p>
  
  <p>Any help or input is highly appreciated. Thanks</p>