Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure form recognizer app invalid resource name

I'm traying to daploy an instance of the form recognizer app in Azure. For that I'm following the instructions in the documentation: https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/deploy-label-tool

I have created the docker instance and the connection, but the step to create the APP is failing. This are the parameters I'm using:

Display Name: Test-form
Source Connection: <previuosly created connection>
Folder Path: None
Form Recognizer Service Uri: https://XXX-test.cognitiveservices.azure.com/
API Key: XXXXX
Description: None

And this is the error and getting:

enter image description here

like image 843
Luis Ramon Ramirez Rodriguez Avatar asked Jun 11 '20 01:06

Luis Ramon Ramirez Rodriguez


1 Answers

I had the same error. It turned out to be due to incorrect SAS URI formatting because I generated and copied the SAS token via the Storage Accounts interface. It's much easier to get the correct format for the SAS URI if you generate it through the Storage Explorer (currently in Preview) as opposed to through the Storage Accounts.

If you read the documentation carefully it gives you a step by step guide

"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://.blob.core.windows.net/?"

Form Recognizer Documentation

like image 57
Alex Morgan Avatar answered Sep 20 '22 17:09

Alex Morgan