A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance
Azure AI Foundry Responses API returns 401 with Entra ID despite resource-scoped inference role
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:
- The currently supported Responses API endpoint and Entra token audience.
- The least-privilege RBAC role and required assignment scope.
- Whether the role must include
Microsoft.CognitiveServices/accounts/OpenAI/responses/writeor a newer equivalent. - Whether any Foundry project, provider, deployment, or network configuration is additionally required.
- Whether a current
gpt-5.4-miniU.S. Data Zone Standard deployment supports this authentication path.
The temporary role was removed after testing. No customer or production data was transmitted.