Azure / Azure/azure-sdk-tools

New-TestResources fails with Cannot bind argument to parameter 'String' because it is null

Open
#7,737 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.