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
[41m[30mfail[39m[22m[49m: 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
[41m[30mfail[39m[22m[49m: 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
[41m[30mfail[39m[22m[49m: 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