Provided key is not a valid CognitiveServices type key for the region of your search service.

Dhruvil Dave 6 Reputation points
2021-08-19T06:25:54.73+00:00

I am working on azure search service and created indexer, indexes and skillsets. My system was working for last 2 months but i am getting error for last 3 days when indexer is run . It is giving me this error

124480-screenshot-2021-08-19-at-114722-am.png

I tried to find this error online but there was not any help on this error.
I checked that all my services are in US_EAST region.

As you can see in image it is not giving any error/warning but it is failing each time.

124498-screenshot-2021-08-19-at-115148-am.png

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,062 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,586 Reputation points Microsoft Employee
    2021-08-19T21:39:49.173+00:00

    @Dhruvil Dave We are sorry to hear you are encountering this error.

    The last time we encountered this error, the solution was to correct the skillset key that was being used. Can you please double check that?

    Skillsets are typically created either through the Import data portal option or through REST API. Please verify which method you are implementing.

    If you are utilizing REST API, verify that your payload matches the following syntax.

    https://learn.microsoft.com/rest/api/searchservice/create-skillset

     "cognitiveServices": {  
      
        "@odata.type": "#Microsoft.Azure.Search.CognitiveServicesByKey",  
      
        "description": "/subscriptions/5cb3cf34-4222-4971-8a5d-5c5093a78fff/resourceGroups/cognitive/providers/Microsoft.CognitiveServices/accounts/wagcogeastus",  
      
        "key": "425dea31<suppressed>fd1257435"  
      
      },  
    

    If you're implanting the above payload structure and it still fails or you are using the import data portal option, please describe what kind of cognitive services you are using.

    We hope this resolves this issue. If not, please reply back so we can further assist you.

    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.