Hello @jinsu na , Thanks for using Microsoft Q&A Platform.
Sorry for the delayed response. The error message indicates that the Analyze operation is part of the Computer Vision API
, I believe you are using the Custom vision key
details. Please make sure you have a valid subscription key and pricing tier for the Computer Vision
service.
Follow these prerequisites to create a resource under the computer vision
API:
Once you have your Azure subscription, create a Computer Vision resource in the Azure portal.
Here is the Git hub sample code along with the troubleshooting details: https://github.com/Azure-Samples/azure-ai-vision-sdk/tree/main/samples/java/image-analysis
401: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource
.
- The computer vision key you entered may be incorrect. Make sure you correctly copied the key from your Azure portal. It should be a 32-character HEX number (no dashes).
I hope this helps.
Regards,
Vasavi
Please take time to accept
the answer if you feel helpful to support the community, thanks!