Async Azure Function for long running form recognizer tasks
Everything is parameterized. If you want to debug it locally, you can use a Post call such as this one:
http://localhost:7071/api/initRecognition
{
"in_account" : "your_storage_account_name",
"in_container" : "your_container_name",
"in_path" : "your_path_to_the_folder",
"in_file" : "your_file_name",
"storagekey": "your_storage_account_key",
"form_endpoint": "https://______your_form_recognier_name______.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-document:analyze?api-version=2022-08-31",
"form_key": "your_form_recognizer_key"
}
If you want to run it on Azure, make sure that the Managed Identity of the function has storage blob data contributor on the storage account and run the following call:
{
"in_account" : "your_storage_account_name",
"in_container" : "your_container_name",
"in_path" : "your_path_to_the_folder",
"in_file" : "your_file_name",
"form_endpoint": "https://______your_form_recognier_name______.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-document:analyze?api-version=2022-08-31",
"form_key": "your_form_recognizer_key"
}