Skip to content

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

@devfinwiz

Description

@devfinwiz

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions