@Sharad Chaurasia The train request was submitted successfully but the train operation failed because your storage account is not configured correctly. Once you submit a train operation a model id is generated but this model is not trained successfully due to the error reason. Please check the storage settings and re-run the train operation and verify if the train request created a model successfully.
Getting errorcode 2011 on performing GET operation from the trained model.
I am using Form Recognizer API. I performed post-operation to train the model. It has given me 201 response-code with the posted URL that includes the generated modelid.
But when I am performing GET request in that URL I am getting the below error.
{
"modelInfo": {
"modelId": "cf9f6d4b-e0a0-4a5d-86d6-613e7c294a1b",
"status": "invalid",
"createdDateTime": "2020-11-16T09:19:33Z",
"lastUpdatedDateTime": "2020-11-16T09:19:33Z"
},
"trainResult": {
"trainingDocuments": [],
"errors": [
{
"code": "2011",
"message": "Could not access Azure blob storage account."
}
]
}
}
2 answers
Sort by: Most helpful
-
romungi-MSFT 43,701 Reputation points Microsoft Employee
2020-11-16T13:45:27.453+00:00 -
Ohina 1 Reputation point
2022-03-15T07:53:34.213+00:00 You may need to grant Azure Cognitive Service (Azure Form Recognizer) a role that allows it to enable managed identity and access to storage.
https://learn.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/managed-identities