An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hello @Tristyn
Thank you for reaching out.
Based on the behavior you described, this appears to be related to RBAC/data-plane permission validation for partner models (Anthropic Claude) within Azure AI Foundry / Azure AI Playground.
The initial error:
“The principal lacks the required data action Microsoft.CognitiveServices/accounts/AIServices/providers/action to perform POST /anthropic/v1/* operation”
typically indicates that the signed-in identity does not yet have the required data-plane permissions needed to invoke inference operations against Anthropic endpoints.
The fact that the error changed afterward to:
“ERR_BAD_REQUESTPrincipal does not have access to API/Operation”
suggests that authentication is now succeeding, but authorization to the Anthropic provider operation is still being blocked.
A few important points to verify:
Ensure the required data-plane role is assigned at the exact Azure AI resource scope (Azure AI Foundry / Cognitive Services resource level), not only at the subscription or resource group level.
The recommended roles are: Azure AI User, Cognitive Services User, Cognitive Services OpenAI User.
Contributor/Owner roles mainly provide management-plane permissions (create/manage resources), They do not automatically grant the dataActions required for inference calls such as: POST /anthropic/v1/*
Verify the role assignment is applied to the correct identity:
- your signed-in user account,
service principal,
or managed identity (depending on how you access the playground/API).
After assigning roles, allow several minutes for RBAC propagation. Then:
sign out/sign back into Azure AI Foundry,
or clear browser cache/session, since stale tokens may continue using old permissions.
Confirm that the Claude model deployment itself is healthy and available in your region/resource. Some Anthropic models are region-restricted, gated, or require marketplace/provider enablement before inference access is allowed.
This is important because GPT models may work successfully while Anthropic calls fail, since Anthropic models use a separate provider backend path (/anthropic/v1/*) with independent entitlement validation.
Regarding the separate “gpt-chat-latest” error: that may be unrelated to RBAC and could instead indicate: preview model limitations, unsupported API version, deployment-type mismatch, regional availability restrictions, or temporary backend issues.
Please also verify: the model is deployed successfully, the deployment status shows “Healthy,” and the deployment type supports chat/inference operations.
Please refer this
Azure AI roles (includes Cognitive Services User & OpenAI User) https://learn.microsoft.com/azure/ai-studio/concepts/rbac-ai-studio
Troubleshoot model availability & permissions in Azure OpenAI https://learn.microsoft.com/azure/ai-services/openai/how-to/role-based-access-control
Manage, collaborate, and organize with hubs (Azure AI Foundry setup) https://learn.microsoft.com/azure/ai-studio/concepts/ai-resources
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!