Azure document inteligence connected container (Invoice 3.1 and Form 3.0) connection issues: api key is invalid

Alperen Sahin 20 Reputation points
2025-04-09T17:35:31.3566667+00:00

Subject: API Key Invalid Error on Document Intelligence Invoice and Form Container After East US Incident

Service: Azure AI Document Intelligence – Container Deployment
Region: East US
Impact Start Time: April 9, 2025
Severity: Critical– Service not functioning as expected

Description:

We are encountering an issue with our Azure Document Intelligence container where the service fails to start properly due to an API Key invalid error.

This started occurring after the incident in East US earlier today (April 9, 2025). The container logs indicate an authentication failure despite the API key remaining unchanged and previously functional. Also, the same key is working for layout services only form and invoice services are not working.

Container images:

mcr.microsoft.com/azure-cognitive-services/form-recognizer/invoice-3.1:2023-07-31

mcr.microsoft.com/azure-cognitive-services/form-recognizer/document-3.0:2022-08-31

Container Logs:

2025-04-09 19:58:05.370 EET
Using API key for authentication.
...
2025-04-09 19:58:06.348 EET
Submitting metering to '****.cognitiveservices.azure.com/'.
...
2025-04-09 19:58:07.030 EET
API Key may be mismatched for the following reason: System.Net.Http.HttpConnectionResponseContent

Troubleshooting Steps Taken:

  • I confirmed the API key is correct and active in the Azure portal.
  • Restarted the container and redeployed it, but the issue persists.
  • Pulled the latest image from the Azure container registry
  • Verified endpoint: https://****.cognitiveservices.azure.com/

Request: We kindly request your assistance in investigating the root cause of this authentication failure. If this issue is related to the recent East US service disruption, please provide confirmation and any relevant details. Additionally, we would appreciate guidance on resolving the issue or recommended workarounds to restore full functionality.

Full log record:

2025-04-09 19:58:07.517 EET
API Key may be mismatched for the following reason: System.Net.Http.HttpConnectionResponseContent
2025-04-09 19:58:07.522 EET
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.
2025-04-09 19:58:07.522 EET
Service responded with error message: This container image is expired.
2025-04-09 19:58:07.522 EET
fail: Microsoft.CloudAI.Containers.Http.CloudClient[0]
2025-04-09 19:58:07.522 EET
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.
2025-04-09 19:58:07.522 EET
fail: Microsoft.CloudAI.Containers.Http.CloudClient[0]
2025-04-09 19:58:07.522 EET
Service responded with error message: This container image is expired.
2025-04-09 19:58:07.572 EET
fail: FormRecognizerInvoice[0]
2025-04-09 19:58:07.572 EET
Unhandled exception in _documentIntelligenceCoreService. Grpc.Core.RpcException: Status(StatusCode="Aborted", Detail="Api Key is invalid.")
2025-04-09 19:58:07.572 EET
at  .. (String , String , String , String , String , String , String , String , String , String , String , AnalyzeResultV3 , Dictionary`2 , Byte[] )
2025-04-09 19:58:07.572 EET
at  .. (′ , ServerCallContext )
2025-04-09 19:58:07.572 EET
at  .
. ()
2025-04-09 19:58:07.572 EET
at  .
.ExecuteAsync(CancellationToken ) serviceName='FormRecognizerInvoice' serverDocType='' serverBuildVersion='1.0.0' hostId='localhost' namespace='' buildVersion='1.0.0' utcNow='2025/04/09 16:58:07' callerFilePath='/__w/1/s/src/Service/Server/Logging/DocumentUnderstandingLogger.cs' callerLineNumber='49' callerMemberName='Error'
2025-04-09 19:58:07.740 EET


Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,020 questions
{count} votes

Accepted answer
  1. Prashanth Veeragoni 3,720 Reputation points Microsoft External Staff
    2025-04-10T17:53:58.6266667+00:00

    Hi Alperen Sahin,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Ask: Azure document intelligence connected container (Invoice 3.1 and Form 3.0) connection issues: api key is invalid

    Solution: The issue is resolved. That you confirm that the problem is solved on your end.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

     

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank you!

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.