Sync eng/common directory with azure-sdk-tools for PR 1146 (#16968)
Sync eng/common directory with azure-sdk-tools for PR 1146 (#16968)

* Remove resource group asynchronously and do not wait for completion

* Verify resource group has reached Deleting state before exiting script

* Use $_ instead of $Error[0] for resource group removal handling

Co-authored-by: Ben Broderick Phillips <543d5725ecc592e5b2d165e48c254308f058c13e@microsoft.com>
Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java