Skip to content

Mount on azure ml sdk v2 throw no attribute _identity_config error #40390

Open
@shuowpro

Description

@shuowpro
  • 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

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Machine LearningService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions