A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance
Error code: 400 when running General purpose Fluency evaluators
Using the sample sample_fluency.py from azure-sdk-for-python at sdk/ai/azure-ai-projects/samples/evaluations/agentic_evaluators/sample_fluency.py, client.evals.create() succeeds but client.evals.runs.create() fails with:
BadRequestError: Error code: 400 - {'error': {'code': 'UserError', 'severity': None, 'message': 'The action cannnot be finished with reason Forbidden', 'messageFormat': 'The action cannnot be finished with reason {error}', 'messageParameters': {'error': 'Forbidden'}, 'referenceCode': None, 'detailsUri': None, 'target': None, 'details': [], 'innerError': {'code': 'UnauthorizedUserAction', 'innerError': None}, 'debugInfo': None, 'additionalInfo': None}, 'correlation': {'operation': 'e9a6cfb5f254b4298cc505acf31ed58c', 'request': '57fc69d1782fbf76'}, 'environment': 'eastus2', 'location': 'eastus2', 'time': '2026-06-22T18:35:59.0328447+00:00', 'componentName': 'raisvc', 'statusCode': 400}
The failure occurs only when creating the evaluation run.
The identity executing the code has the Foundry User role assigned on the Azure AI Foundry resource. I also assigned Foundry User to the project managed identity on the project level.
Inference works successfully using:
client.chat.completions.create(...)
with the same project and model deployment.
Is there additional RBAC required specifically for Evaluation Runs? Or any thing else that might be cauing the RequestError