microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.2k stars 1.12k forks source link

The account type 'FormRecognizer' is either invalid or unavailable in given region. #274

Closed avistavkin closed 9 months ago

avistavkin commented 9 months ago

After one almost successful deployment of the solution, all the rest my attempts are failed with and error (detailed description is below).

I've checked and removed all artefacts from first deployment. Checked that I can create FormRecognizer kind of accounts manually from portal.

Please suggest - where else to look?

{ "code": "InvalidTemplateDeployment", "message": "The template deployment 'all-resources' is not valid according to the validation procedure. The tracking id is '1b35826c-7a58-4012-957f-82b73b8a8a99'. See inner errors for details.", "details": [ { "code": "InvalidApiSetId", "message": "The account type 'FormRecognizer' is either invalid or unavailable in given region." } ] }

jorupp commented 9 months ago

What region are you deploying to? Are you deploying as the same user you're using to create the Form Recognizer from the portal? Are you able to create all the other resources (ie. Azure OpenAI)?

I recall that creating at least some of the cognitive services resources (I forget if Form Recognizer is one) requires the user accepts a EULA-like thing, which you can only do interactively or by granting the user a specific permission (Cognitive Services User I think). That initially caused me some issues when I was trying to create Azure OpenAI resources via a service principal.

avistavkin commented 9 months ago

What region are you deploying to? Are you deploying as the same user you're using to create the Form Recognizer from the portal? Are you able to create all the other resources (ie. Azure OpenAI)?

Yes, the same user. And I tried different regions - EastUS, CanadaEast. Everything that normally works for me

jorupp commented 9 months ago

Yes, the same user. And I tried different regions - EastUS, CanadaEast. Everything that normally works for me

Ok, doesn't sound the the issue I thought it might be then - maybe someone else has an idea.

avistavkin commented 9 months ago

Look! I did logout and login - and it helped! Seems something were not good with authentication or user cash...