Unable to Add Data Source in Azure OpenAI

SwathiDhanwada-MSFT 18,996 Reputation points Moderator
2024-08-01T08:43:11.95+00:00

How can I resolve the issue of not being able to add a data source in Azure OpenAI due to key-based authentication being disabled?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,125 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,996 Reputation points Moderator
    2024-08-01T08:44:18.0766667+00:00

    The issue of not being able to add a data source in Azure OpenAI is likely caused by key-based authentication being disabled.

    User's image

    To resolve this, you need to enable key-based authentication. This can be done by executing the following CLI command:

     

    
    Set-AzCognitiveServicesAccount -ResourceGroupName <ResourceGroupName> -Name <ResourceName> -DisableLocalAuth $False
    
    

     

    After enabling key-based authentication, you might encounter a second issue related to permissions. Ensure that you have the necessary roles assigned, such as Cognitive Services Contributor, Search Service Contributor, and Storage Account Contributor, to access the required resources.

     

    Resources:

     

    Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

     

    0 comments No comments

Your answer

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