Azure / Azure/azure-sdk-for-python

Mount on azure ml sdk v2 throw no attribute _identity_config error

Open
#40,390 11 comments 0 reactions 0 assignees View on GitHub
bug Client customer-reported dataprep Machine Learning needs-team-attention Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

- **Package Name**:
azure-ai-ml[mount]==1.25.0
azure-identity==1.20.0
- **Operating System**:
Ubuntu 20.04
- **Python Version**:
3.12
**Describe the bug**
When I try to mount the data assets or data store, it will throw the following error:
```
'MsalClient' object has no attribute '_identity_config'
```

**To Reproduce**
Steps to reproduce the behavior:

run the following code inside of the azure ml environment

```
credential = ManagedIdentityCredential()

ml_client = MLClient(
credential=credential,
subscription_id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
resource_group_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
workspace_name="xxxxxxxxxxxxxxxxxxxxxx",
)

ml_client.datastores.mount(
"azureml://datastores/my_datastore",
mount_point="/mnt/my_datastore",
)
```

The environment is:
```
environment = Environment(
image="mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04"
)
```

**Expected behavior**
It should mount

**Screenshots**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.