Key based authentication disabled for this resource

Tonye Iyalla 0 Reputation points Microsoft Employee
2025-01-07T02:10:43.76+00:00

I'm trying to create a vector index by uploading a pdf file in the chat playground. However I keep getting an error message that my AuthenticationTypeDisabled: Key based authentication disabled for this resource.

Its unclear which resource this is referring to? AI search, storage account? How do I resolve this

User's image

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,141 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,041 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vidya Viraktamath 235 Reputation points Microsoft Employee
    2025-01-08T20:26:13.5833333+00:00

    The error message "AuthenticationTypeDisabled: Key based authentication disabled for this resource" typically indicates that key-based authentication has been disabled for the resource you're trying to access. This could be related to either your Azure Storage account or the Azure AI service you're using.

    Steps to Resolve the Issue:

    1. Check Azure Storage Account Settings:
      • Navigate to your Azure Storage account in the Azure portal. Check for properties- User's image
      • Go to Security + networking > Access keys.
      • Ensure that key-based authentication is enabled. If it is disabled, you may need to enable it or use Azure AD authentication instead.
    2. Verify Azure AI Service Configuration:
      • Ensure that the Azure AI service (e.g., Search Service) is configured to use the appropriate authentication method. User's image
        • If you have disabled key-based authentication for security reasons, make sure that the service has the necessary permissions to access the storage account using Azure AD.
        Enable Access for Trusted Services:
        • In your storage account, go to Security + networking > Networking.
          • Ensure that the option Allow Azure services on the trusted services list to access this storage account is enabled.
          Review Managed Identities:
          - If you are using managed identities, ensure that the managed identity of your Azure AI service has the necessary roles (e.g., Storage Blob Data Contributor) assigned to access the storage account.
          
    3. Check for Policy Restrictions:
      • Review any Azure policies that might be restricting key-based authentication. Ensure that there are no policies preventing the use of key-based authentication for the required resources.
    0 comments No comments

  2. Vidya Viraktamath 235 Reputation points Microsoft Employee
    2025-01-08T20:29:18.4333333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    The error message "AuthenticationTypeDisabled: Key based authentication disabled for this resource" typically indicates that key-based authentication has been disabled for the resource you're trying to access. This could be related to either your Azure Storage account or the Azure AI service you're using.

    Steps to Resolve the Issue:

    1. Check Azure Storage Account Settings:
      • Navigate to your Azure Storage account in the Azure portal.
      • Check properties- User's image
      • Go to Security + networking > Access keys.
      • Ensure that key-based authentication is enabled. If it is disabled, you may need to enable it or use Azure AD authentication instead.
    2. Verify Azure AI Service Configuration:
      • Ensure that the Azure AI service (e.g. search service) is configured to use the appropriate authentication method. User's image
      • If you have disabled key-based authentication for security reasons, make sure that the service has the necessary permissions to access the storage account using Azure AD.
    3. Enable Access for Trusted Services:
      • In your storage account, go to Security + networking > Networking.
      • Ensure that the option Allow Azure services on the trusted services list to access this storage account is enabled.
    4. Review Managed Identities:
      • If you are using managed identities, ensure that the managed identity of your Azure AI service has the necessary roles (e.g., Storage Blob Data Contributor) assigned to access the storage account.
    5. Check for Policy Restrictions:
      • Review any Azure policies that might be restricting key-based authentication. Ensure that there are no policies preventing the use of key-based authentication for the required resources.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    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.