Hello Aranca, Farimah,
Welcome to Microsoft Q&A .Thank you for reaching out.
We understand the concern around authentication when using Custom Question Answering (CQA) withAzure Language Service and Azure AI Search.
1. Azure AI Language Service (Custom Question Answering)
Azure AI Language supports both API key authentication and Microsoft Entra ID (Azure RBAC).
· When using Custom Question Answering:
· The Language service can be accessed using RBAC (Microsoft Entra ID).
· There is no requirement for the Language resource access keys to remain enabled when RBAC authentication is used.
· In other words, the Language service itself does not have a CQA-specific limitation that requires API keys to stay enabled.
2. Azure AI Search (when used with CQA)
In general , Azure AI Search supports RBAC . However, when it is integrated with custom question answering, the behavior is different.
In the CQA architecture:
· The service provisions and manages an Azure AI Search index that stores the knowledge base content.
· The backend service relies on the Search Admin Key to manage and query this index.
Because of this dependency:
· API key authentication must remain enabled on the Azure AI Search resource when it is used by Custom Question Answering.
· RBAC-only (keyless) authentication is currently not supported for Azure AI Search in the CQA integration scenario.
· As a result, Azure AI Search access keys cannot be fully disabled if the Search resource is being used by CQA.
So , to conclude,
· Azure AI Language: RBAC-only authentication can be used for Custom Question Answering.
· Azure AI Search: API key authentication must remain enabled when the Search resource is connected to CQA.
Please refer the following
Enable role-based access control - Azure AI Search | Microsoft Learn
Connect using Azure roles - Azure AI Search | Microsoft Learn
Configure the custom question answering service for fine-tune models - Foundry Tools | Microsoft Learn
Thank you