-
Notifications
You must be signed in to change notification settings - Fork 3.3k
AzureCliCredential fails due to Python deprecation message getting mixed with token output #26857
Copy link
Copy link
Closed
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Metadata
Metadata
Assignees
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Describe the bug

In https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/_credentials/azure_cli.py#L137, the option
"stderr": subprocess.STDOUTmakescheck_outputalso include stderr in the returned string. I was trying to use this package in a container with a somewhat out-of-date python setup, which causedaz account get-access-tokento output some warnings to stderr:Since
_run_command's return value is parsed as JSON, this caused an exception and resulted in a somewhat confusing error message:To Reproduce
(Environment-specific, but reasoning for this issue described above)
Expected behavior
AzureCliCredentialshould work