-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Unsupported auth type AccountManagedIdentity when uploading dataset #46235
Copy link
Copy link
Open
Labels
AI ProjectsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
AI ProjectsService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Calling
project_client.datasets.upload_file()on an AI Services-backed AI Foundry project (newCognitiveServices/accountsmodel, not the legacyMachineLearningServices/workspacesmodel) fails with a400 BadRequesterror:The error originates from the asset store backend at:
The AI Foundry hub is configured with:
UserAssignedmanaged identitysystemDatastoresAuthMode:"Identity"This is not limited to the SDK — the same error also occurs when attempting to upload a dataset through the Azure AI Foundry portal UI, confirming this is a backend/platform-level issue rather than an SDK bug.
To Reproduce
Microsoft.MachineLearningServices/workspaces,kind: "Hub") with:UserAssignedmanaged identitysystemDatastoresAuthMode = "Identity"6.. Attempt the same upload via the Azure AI Foundry portal UI → same error.
Expected behavior
datasets.upload_file()should succeed when the hub is configured withsystemDatastoresAuthMode = "Identity"and a UserAssigned managed identity. The asset store'stemporaryDataReference/createOrGetendpoint should support theAccountManagedIdentityauth type for AI Services-backed projects.Screenshots
UI Error (same as python sdk error)
Additional context
Add any other context about the problem here.