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