An Azure service that integrates speech processing into apps and services.
Hello Arne Lieten,
Welcome to Microsoft Q&A and Thank you for reaching out.
In addition to inputs provided by Vinodh247 , please check if the following helps
In Azure AI Foundry, authentication support differs depending on whether a provider endpoint or a model deployment endpoint is invoked. Using Entra ID tokens against certain provider endpoints can result in internal service failures that surface as 500 errors.
Azure AI Foundry exposes two different endpoint patterns for Cohere models:
- Provider Endpoint
/providers/cohere/v2/rerank- Commonly expects API key–based authentication
- Entra ID support may be limited or inconsistent
- Valid Entra tokens may be accepted but fail during backend processing, resulting in a 500 error
- Model deployment endpoint
/models/{deployment-name}/...
-
- Designed to support Entra ID (AAD) authentication
- Recommended for identity‑based access using DefaultAzureCredential
Please check if the following troubleshooting steps help
- Verify the Endpoint Being Used
Please check whether the request is sent to:
- /providers/cohere/v2/rerank - likely cause of the issue
- /models/{deployment-name} -preferred for Entra ID authentication
- Try isolate authentication vs service behavior by invoking the same request using the project API key.If the API key succeeds, then
- There is no issue with model deployment
- Not a request payload issue
- Issue isolated to authentication compatibility
- Validate request payload structure
At times even with correct authentication, malformed input may trigger server errors.
Please check to confirm if
- documents array is not empty
- query is a non‑null string
- Input size and document count are within supported limits
- Confirm region and model availability
Cohere models are available only in specific regions.
So please check and validate the
- Project region supports Cohere Rerank v4.0 Fast
- Deployment is active and healthy in the selected region
References:
Authentication and authorization in Microsoft Foundry - Microsoft Foundry | Microsoft Learn
Thank you!
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.