Azure AI Foundry Responses API returns 401 with Entra ID despite resource-scoped inference role

Maurice Fluelling 0 Reputation points
2026-10-10T02:20:30.8233333+00:00

I am testing a non-production Azure AI Foundry deployment using U.S. Data Zone Standard. Authentication uses Microsoft Entra ID; no API keys or desktop-embedded credentials are permitted.

Token acquisition succeeds. The evaluation identity was temporarily assigned Cognitive Services OpenAI User at the exact Foundry resource scope. After waiting more than five minutes for propagation, a single synthetic request to the Responses API returned HTTP 401 PermissionDenied before inference. No model tokens were consumed.

Could Microsoft clarify:

  1. The currently supported Responses API endpoint and Entra token audience.
  2. The least-privilege RBAC role and required assignment scope.
  3. Whether the role must include Microsoft.CognitiveServices/accounts/OpenAI/responses/write or a newer equivalent.
  4. Whether any Foundry project, provider, deployment, or network configuration is additionally required.
  5. Whether a current gpt-5.4-mini U.S. Data Zone Standard deployment supports this authentication path.

The temporary role was removed after testing. No customer or production data was transmitted.

Microsoft Foundry
Microsoft Foundry

A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.