AttributeError: 'ChallengeAuthPolicy' object has no attribute '_credential' #9462
Labels
Azure.Core
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.
KeyVault
Describe the bug
When using the latest version of the packages listed above, I get an error
AttributeError: 'ChallengeAuthPolicy' object has no attribute '_credential'
when usingset_secret
.To Reproduce
Set the
AZURE_CLIENT_ID
,AZURE_CLIENT_SECRET
, andAZURE_TENANT_ID
environment variables.This is a short, slightly obfuscated snippet of the script I am running in an Azure DevOps pipeline.
With azure-common-1.1.24, azure-core-1.2.0, azure-identity-1.2.0, and azure-keyvault-secrets-4.0.0 I receive the error
AttributeError: 'ChallengeAuthPolicy' object has no attribute '_credential'
when runningsecret_client.set_secret
(full trace is included below).If I explicitly install previous versions, with
pip install azure-keyvault-secrets==4.0.0 azure-core==1.1.0 azure-common==1.1.23 azure-identity==1.1.0
, the script succeeds.Expected behavior
The secret is created in Key Vault.
Screenshots
The text was updated successfully, but these errors were encountered: