New-TestResources fails with Cannot bind argument to parameter 'String' because it is null
Open
Central-EngSys
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 143
Description
Observed in the azure-sdk-for-go repo.
I tracked this down to the following line.
https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/TestResources/New-TestResources.ps1#L207
In my debugging, `$credential` is empty which I presume is the root cause.
Version of `Az` installed is 11.3.1.
Contributor guide
Research direction
Start at eng/common/TestResources/New-TestResources.ps1 line 207 and inspect how $credential is populated before the failing parameter binding. Reproduce New-TestResources with Az 11.3.1, trace the empty credential path, and confirm the command completes without the null String argument error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100