Sync eng/common directory with azure-sdk-tools for PR 2513 (#26369)
Sync eng/common directory with azure-sdk-tools for PR 2513 (#26369)

* Update test resources SP password creation to support Az >= 7.1.0

* Check Az.Resources module version

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