An Azure service that provides cloud-scale job scheduling and compute management.
Hello @Ray Swan
Based on what you’ve already validated, this does not look like a normal client-side tenant, login, or RBAC problem. Azure ML Batch Endpoints require a valid Microsoft Entra token for invocation, and the invoking identity must have the required permissions to create the batch job.
In your case, though, the token tid, subscription homeTenantId, workspace tenantId, workspace managed identity tenant, and the tenant returned by Azure CLI all match. You also reproduced the same 403 against a second older workspace in the same subscription/tenant, after testing fresh authentication and different principals.
The particularly important detail is that the response comes directly from:
server: azureml-frontdoor
Tenant mismatch: Token tenant does not match resource tenant
rather than from the CLI itself.
Given that evidence, I would not keep recreating endpoints, refreshing credentials, or changing RBAC roles. The failure appears to happen before the batch job is created, during the Azure ML data-plane/frontdoor authorization check.
Microsoft’s public Batch Endpoint documentation explains the Entra token requirement and endpoint authorization model, but I don’t see a documented additional tenant identifier that customers can inspect or repair themselves which would explain this specific mismatch.
At this point, this needs an Azure Machine Learning backend investigation. I would provide Microsoft with:
- Workspace and batch endpoint resource IDs
- Subscription and tenant IDs
- Exact UTC timestamp of a fresh reproduction
- Sanitized token claims showing aud and tid
- CLI --debug trace
- Any request/correlation IDs returned by azureml-frontdoor
Since you don’t have a paid technical support plan, I would ask a Microsoft Q&A moderator to help route this to the Azure ML product team or arrange collection of those identifiers privately.
I also wouldn’t describe this as a confirmed Azure ML platform bug yet, but your cross-workspace reproduction makes a stale or incorrect backend tenant association a reasonable hypothesis that Microsoft engineering would need to verify.
Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.