azidext icon indicating copy to clipboard operation
azidext copied to clipboard

AttributeError: 'AzureIdentityCredentialAdapter' object has no attribute 'get_token'

Open devfinwiz opened this issue 2 years ago • 0 comments

from msrestazure.azure_cloud import AZURE_CHINA_CLOUD, AZURE_GERMAN_CLOUD from msrestazure.azure_cloud import AZURE_PUBLIC_CLOUD, AZURE_US_GOV_CLOUD I am using these imports and the wrapping of azure credentials with AzureIdentityCredentialAdapter isn't working. It solved my earlier similar issue with signed_session() not found. But now, I have this new AttributeError post using this wrapper class in my script. Here's the code snippet:

for endpoint in acr_endpoint:
       print("<--- Scanning {} --->".format(endpoint))
       container_registry_client = ContainerRegistryClient(
           endpoint, credentials, audience=default_audience
       )
       respositories = list_acr_repositories()

devfinwiz avatar Mar 29 '23 09:03 devfinwiz