container issue "Mismatch" for Cognitive Service

Zuo Ke Jing (NCS) 11 Reputation points
2022-10-29T09:08:05.747+00:00

when I used correct apikey and endpoint to run a cognitive service, the container always show:

Container is not in a valid state. Subscription validation failed with status 'Mismatch'. You have provided an Api Key or endpoint for the different kind of cognitive services resource. Find your API key and service region under Keys and Endpoint at your Azure Cognitive Services resource blade in the Azure Portal. For more information please visit https://aka.ms/cscontainers-faq.

microsoft-congnitive-svcs-ocr-1 | fail: Microsoft.CloudAI.Containers.Http.CloudClient[0]

I checked serval time apikey and enpoint, and make sure of that they are correct. I suspect the contianer env should config region information, but I donot how to config it. somebody can give me suggestion?

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

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,826 Reputation points
    2022-10-31T11:15:12.007+00:00

    @Zuo Ke Jing (NCS) Thanks for the question. Can you please add more details about the cognitive service that you are using? . Which resource are you using from the azure portal?.

    Here is the document for containers in azure cognitive services.


  2. Chris McLaughlin 0 Reputation points
    2024-09-13T21:34:58.8133333+00:00

    Confirm that the API key is for the correct resource type.

    Mismatch means that the wrong API key has been used. If you have provided an API key or endpoint for a different kind of Azure AI Services resource, you find your API key and service region in the Azure portal, in the Keys and Endpoint section for your Azure AI Services resource.

    If the API key is invalid, you must confirm that the API key is for the correct region. If the API key has exceeded the quota, then you can either upgrade your pricing tier or wait for an additional quota to become available. Find your tier in the Azure portal, in the Pricing Tier section of your Azure AI Service resource. The mismatch error would not be generated if the resource was offline.

    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.