How can I get past authentication type error when adding a datasource to my AzureOpenAI deployment ?

Andrei Tudorica 15 Reputation points
2024-10-21T20:10:08.1966667+00:00

When trying to add a data source (for example, blob storage) to a azure openai deployment model I get the an error with no additional details:

"Failed to validate the selected authentication type. Please resolve the following errors and click next."

There are no "following errors" displayed.

User's image

The roles described at https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/use-your-data-securely#role-assignments are in place.

In the browser console I can see https://<myAzureOpenAiInstance>.openai.azure.com/openai/on-your-data-validation?api-version=2023-03-31-preview has failed with 404 (not found)

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
{count} vote

1 answer

Sort by: Most helpful
  1. Andrei Tudorica 15 Reputation points
    2024-10-30T11:52:39.6466667+00:00

    The issues seemed to be on the Region selected.

    I had Poland Central for the storage account, ai openai and search service with all the roles added needed for a managed identity setup.

    With Inspect in the browser I could find in the Network tab in one of the calls at one point the following message.

    Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
    

    Although my RG is North Europe, I've created a new set of storage account, ai openai and search service in EastUS with the same group of roles for the managed identity configuration and it worked.

    I believe Azure is still asigning "behind the scenes" the resources in another region if not available in the one selected generating the problem I was facing.

    1 person found this answer helpful.

Your answer

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