getting a Microsoft.Azure.CognitiveServices.Vision.Face.Models.APIErrorException: Operation returned an invalid status code Forbidden

kiran veerabatheni 11 Reputation points
2022-10-21T06:40:34.98+00:00

receiving the error while calling the face api.
Microsoft.Azure.CognitiveServices.Vision.Face.Models.APIErrorException: 'Operation returned an invalid status code 'Forbidden''

What should the resource group look like?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,835 questions
{count} vote

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 51,701 Reputation points
    2022-10-22T00:43:46.927+00:00

    Hello @kiran veerabatheni

    Sorry for your experience and thanks for reaching out to here for it. I guess you miss the limitation of Face API. You should have received an email from Azure about the Face API limitation- https://learn.microsoft.com/en-us/azure/cognitive-services/cognitive-services-limited-access

    Face service access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. You got this error since what you are trying to call is now limited access to them because you have not been approved to use that capability. Face service is only available to Microsoft managed customers and partners. Please use the Face Recognition intake form to apply for access- aka.ms/facerecognition.

    I hope this helps. Let me know if you have sent the form but still have this issue.

    Regards,
    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.