The issue of not being able to add a data source in Azure OpenAI is likely caused by key-based authentication being disabled.
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.