Error while creating SkillSet for RAG application using Azure AI services, Python. Error: HttpResponseError: () Skillsets require a valid 'all-in-one' Cognitive Services key

Rajeev Kumar Singh 0 Reputation points Microsoft Employee
2025-01-10T21:58:21.5133333+00:00

Overview:

I am using RAG tutorial to create SkillSet using Python code:

Url: https://github.com/Azure-Samples/azure-search-python-samples/blob/main/Tutorial-RAG/Tutorial-rag.ipynb

I created Azure AI Services and referring the Cogntive services and its key in the configuration, when I execute the code, I am getting below error.

Error:

HttpResponseError: () Skillsets require a valid 'all-in-one' Cognitive Services key. Provided key is of type AIServices.S0

Solution/Configuration details:

All the required services, Azure OpenAI, Azure AI Search, Azure AI Services, Azure Blob are in the same region (east US).

When I created Azure AI services I had only one option to selected Standard tier, not sure if it has any other tier as well?

Below is the error, please help me if you have encountered this error and whats the solution to fix this.

HttpResponseError: () Skillsets require a valid 'all-in-one' Cognitive Services key. Provided key is of type AIServices.S0

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,071 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vikram Singh 580 Reputation points Microsoft Employee
    2025-01-13T07:25:00.6033333+00:00

    Hi @Rajeev Kumar Singh

    Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    The error message you are encountering, HttpResponseError: () Skillsets require a valid 'all-in-one' Cognitive Services key. Provided key is of type AIServices.S0, indicates that the key you are using is not compatible with the requirements for creating a Skillset in Azure Cognitive Services. Specifically, it suggests that the key you are using is for a specific service tier that does not support the "all-in-one" capabilities required for the Skillset. You can verify it by troubleshooting with below steps:

    1. Verify Cognitive Services Key Type: The error indicates that the key you are using is of type AIServices.S0, which is not suitable for creating Skillsets. You need to ensure that you are using a key from the "all-in-one" Cognitive Services resource.
      • Check the Azure portal to confirm the type of Cognitive Services resource you have created. You should look for a resource that explicitly states it supports "Cognitive Services" with capabilities for various AI services.
      1. Create a New Cognitive Services Resource: If your current resource does not support the required capabilities, you may need to create a new Cognitive Services resource. When creating the resource, ensure you select the "Cognitive Services" option that includes the "all-in-one" capabilities.

    Note: Ensure that the services you are trying to use AI services that are available in the region you selected. Sometimes, certain features may not be available in all regions.

    Do let me know if you are still the facing the issue.


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.