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:
- Check Azure Storage Account Settings:
- Navigate to your Azure Storage account in the Azure portal. Check for properties-
- 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.
- Verify Azure AI Service Configuration:
- Ensure that the Azure AI service (e.g., Search Service) is configured to use the appropriate authentication method.
- 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.
- 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.
- 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.
- Ensure that the Azure AI service (e.g., Search Service) is configured to use the appropriate authentication method.
- 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.