question

jandos avatar image
0 Votes"
jandos asked romungi-MSFT commented

Cannot access Azure form recognizer from Azure virtual machine (Ubuntu 20.04)

I can access Form Recognizer from my local PC (Windows 10) using .NET SDK (package Azure.AI.FormRecognizer 3.1.1). But I cannot access the same instance of the Form Recognizer, from the Azure virtual machine (Ubuntu 20.04). The error says: Retry failed after 4 tries; Resource temporarily unavailable (myformrecognizertrial.cognitiveservices.azure.com:443). It looks like there is a DNS resolve issue. Is virtual machine not allowed to access azure services by default? What settings should I do?

azure-cognitive-servicesazure-form-recognizer
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@jandos Did you get a chance to review the below suggestion and check if disabling the service iptables helped?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@jandos There is no restriction to access the endpoint. If public internet access is available on the machine then the endpoint should be available.
If the virtual machine is running any firewall or is behind a private vnet then there could be access issues if port 443 and public internet access is restricted.
Since you are using Ubuntu I would recommend to check the status of iptables service and disable it to check if this works.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.