MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

No access (404 resource not found) to Computer Vision (Free tier) from outside Azure (public internet) #72628

Closed hansellb closed 3 years ago

hansellb commented 3 years ago

I am creating this issue because I saw similar ones created no so long ago, and they received help...

Basically, I am getting a 404 error when using the Computer Vision API (Free subscription) even though I allowed access from all networks... Steps I took set it up:

  1. Search Computer Vision in Marketplace
  2. Created a new Computer Vision resource (and a new Resource Group). Name: smarty
  3. In the Networking section I selected: Allow access from: All networks

I could test is successfully from the API Console, e.g.:

  1. After successful creation, went to smarty -> Quick start -> API Console
  2. Select Describe Image API
  3. Set all the required parameters, click Send, and received a successful response

The request looks like:

POST https://smarty.cognitiveservices.azure.com/vision/v3.0/describe?maxCandidates=1&language=en HTTP/1.1
Host: smarty.cognitiveservices.azure.com
Content-Type: application/json
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••

The problem comes when I try to send the same request, from my local computer, using either cURL or Postman. I always get 404 Resource Not Found error.

Any help would be greatly appreciated!

AjayKumar-MSFT commented 3 years ago

@hansellb, Thanks for leveraging Azure docs feedback channel to raise this question. Could you please share the Azure documentation for which this feedback is applicable to?

Since you have closed the issue, so I presume you have resolved the issue.
As a side note, this channel is reserved for ‘Azure docs’ feedback- for sharing doc feedback and suggesting content improvements.

Thanks again for taking time to share your feedback!