azure-sdk-tools/eng
Ben Broderick Phillips c8b481cfd1
Update test resources SP password creation to support Az >= 7.1.0 (#2513)
Az version 7.0.0 had an issue where new service principal credential creation would not automatically generate a password by default. To work around this, one had to pass in a password credential object with an empty password to get it to work.

With the update to 7.1.0, the behavior of creating a password automatically was restored, but it also appeared to change the parameter set such that the existing calls were broken (since we weren't passing a now required `ServicePrincipalId` parameter).

```
Cannot bind argument to parameter 'ServicePrincipalId' because it is an empty string.
```

This PR updates the script to handle 7.0.0 and >= 7.1.0 versions of Az. Eventually we can remove the special handling for 7.0.0 as no one should have it installed. For posterity in case anyone hits this, the error you get when running the 7.1.0 targeted code with 7.0.0 loaded is:

```
New-TestResources.ps1: Cannot bind argument to parameter 'String' because it is null.
```

Thanks to @kashifkhan for bringing this to my attention.
2022-01-13 00:10:58 +00:00
..
common Update test resources SP password creation to support Az >= 7.1.0 (#2513) 2022-01-13 00:10:58 +00:00
containers updating container ci trigger (#2274) 2021-11-15 14:44:59 -08:00
images - Attempt to fix nuget 2020-01-09 15:18:26 -06:00
mgmt adjusting targets 2019-07-05 21:27:31 -07:00
pipelines Add link to triggering tools repo update run (#2523) 2022-01-10 16:28:08 -08:00
scripts Make sure clean-up scripts return collections (#2272) 2021-11-16 22:47:43 +00:00
AzureSDKToolsKey.snk Restructure the .NET build 2019-04-05 09:04:42 -07:00
CHECKENFORCER Adjust timeout message. (#1150) 2020-10-28 14:35:24 +11:00
Directory.Build.props Make lang ver explicit whild sdk ver is explicit (#2181) 2021-10-28 14:03:15 -07:00
Directory.Build.targets - Attempt to fix nuget 2020-01-09 15:18:26 -06:00
Versioning.props Add versioning support props and targets 2019-04-12 14:49:08 -07:00
Versioning.targets Add versioning support props and targets 2019-04-12 14:49:08 -07:00