Skip to content

Azure CLI command fails: AttributeError: Can't get attribute 'NormalizedResponse' on <module 'msal.throttled_http_client'... #31419

@arpitg-sh

Description

@arpitg-sh

Describe the bug

2025-05-07 07:02:22.965 - DEBUG - az - Executing az acr import -n viennadroptest --source linuxgeneva-microsoft.azurecr.io/distroless/genevamdm:recommended -t distroless/genevamdm:recommended-individualci.vienna.171304749 --subscription f1d79e73-f8e3-4b10-bfdb-4207ca0723ed -g viennadroptest --output json

ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: Can't get attribute 'NormalizedResponse' on <module 'msal.throttled_http_client' from '/tmp/aml-ve/lib/python3.9/site-packages/msal/throttled_http_client.py'>

<lambda> @ /tmp/aml-ve/lib/python3.9/site-packages/tenacity/__init__.py:400
result @ /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/concurrent/futures/_base.py:439
__get_result @ /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/concurrent/futures/_base.py:391
__call__ @ /tmp/aml-ve/lib/python3.9/site-packages/tenacity/__init__.py:480
_az @ /tmp/aml-ve/lib/python3.9/site-packages/msftkube/az.py:132
AzCliExecutionException: Exit Code:1, Result:Can't get attribute 'NormalizedResponse' on <module 'msal.throttled_http_client' from '/tmp/aml-ve/lib/python3.9/site-packages/msal/throttled_http_client.py'>
Execution failed, detailed log: /tmp/msftkube-build_runner-20250507-090609.log

### Related command

az acr import -n viennadroptest --source linuxgeneva-microsoft.azurecr.io/distroless/genevamdm:recommended -t distroless/genevamdm:recommended-individualci.vienna.171304749 --subscription f1d79e73-f8e3-4b10-bfdb-4207ca0723ed -g viennadroptest --output json

or 

`az acr repository show -n viennadroptest --image distroless/genevamdm:recommended-schedule.vienna.171319204 --subscription f1d79e73-f8e3-4b10-bfdb-4207ca0723ed --output json`

### Errors

ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: Can't get attribute 'NormalizedResponse' on <module 'msal.throttled_http_client' from '/tmp/aml-ve/lib/python3.9/site-packages/msal/throttled_http_client.py'>

### Issue script & Debug output

<lambda> @ /tmp/aml-ve/lib/python3.9/site-packages/tenacity/__init__.py:400
result @ /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/concurrent/futures/_base.py:439
__get_result @ /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/concurrent/futures/_base.py:391
__call__ @ /tmp/aml-ve/lib/python3.9/site-packages/tenacity/__init__.py:480
_az @ /tmp/aml-ve/lib/python3.9/site-packages/msftkube/az.py:132
AzCliExecutionException: Exit Code:1, Result:Can't get attribute 'NormalizedResponse' on <module 'msal.throttled_http_client' from '/tmp/aml-ve/lib/python3.9/site-packages/msal/throttled_http_client.py'>
Execution failed, detailed log: /tmp/msftkube-build_runner-20250507-090609.log

### Expected behavior

It should do the acr import

### Environment Summary

/usr/bin/az --version
azure-cli                         2.72.0

core                              2.72.0
telemetry                          1.1.0

Extensions:
azure-devops                       1.0.1

Dependencies:
msal                              1.32.3
azure-mgmt-resource               23.1.1

Python location '/opt/az/bin/python3'


### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botContainer Registryaz acrService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions