Missing resource principal output misinterpreted as PowerShell not installed #31998
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
When the
AzurePowerShellCredential
interprets the output for finding the reason for a failed token retrieval, every output that contains "not found" is interpreted as "Powershell not installed":azure-sdk-for-net/sdk/identity/Azure.Identity/src/Credentials/AzurePowerShellCredential.cs
Line 173 in 58be25f
This causes very misleading error messages because "not found" is also output for other error cases, for example:
The text was updated successfully, but these errors were encountered: