Azure Form Recognizer. Enabling/debuggin connection to Blob_container

M.Zhukov 1 Reputation point
2020-07-31T10:06:43.117+00:00

Hello everybody.

How to start using Form Recognizer easier..?

So far

I downloaded docker with UI accessible from http://localhost:3000/

But could not establish?debug connection to my Azure Blob_container

It looks I must CORS permissions provide for Blob_container with files to recognize
(https://video2.skills-academy.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services#enabling-cors-for-the-azure-storage-services)

Thinking to do it with Shared Key, so I must send PUT request with specific Auth header (https://video2.skills-academy.com/en-us/rest/api/storageservices/authorize-with-shared-key)

But that sounds quite complicated with words: “call the HMAC-SHA256 algorithm on the UTF-8-encoded signature string and encode the result as Base64”

1- Probably, there are easier solutions, can I make the blob public or so?
2-What else do I need for succesfull blob-connection?

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,508 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,656 Reputation points Microsoft Employee
    2020-07-31T15:20:53.243+00:00

    @M.Zhukov I believe you are using the labeling tool to run this container and adding a connection to the blob storage. While providing the SAS URL you only need to provide the following permissions to the container.

    • Read
    • Write
    • Delete
    • List

    Here are the details from the document.

    SAS URL - The shared access signature (SAS) URL of your Azure Blob Storage container. To retrieve the SAS URL, open the Microsoft Azure Storage Explorer, right-click your container, and select Get shared access signature. Set the expiry time to some time after you'll have used the service. Make sure the Read, Write, Delete, and List permissions are checked, and click Create. Then copy the value in the URL section. It should have the form: https://<storage account>.blob.core.windows.net/<container name>?<SAS value>.

    If the connection is successful you will be able to use the files in the container after creating a project to run OCR and label them. If the training is successful you can use this model with the analyze API. I hope this helps.

    1 person found this answer helpful.