Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install azure-ai-vision-faceanalyzer@latest fails #117

Open
eolamisan opened this issue Aug 27, 2024 · 3 comments
Open

install azure-ai-vision-faceanalyzer@latest fails #117

eolamisan opened this issue Aug 27, 2024 · 3 comments

Comments

@eolamisan
Copy link

eolamisan commented Aug 27, 2024

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Steps to reproduce the behavior:
Follow steps https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/GET_FACE_ARTIFACTS_ACCESS.md
Get 403 Forbidden for GET and POST when making the request to with Bearer Token and subscriptionId
https://face-sdk-gating-helper-2.azurewebsites.net/sdk/subscriptions/{subscriptionId}/tokens?id={tokenId}

Any log messages given by the failure

Generating a new token...
Invoke-RestMethod : The remote server returned an error: (403) Forbidden.
At C:\source\GitHub\azure-ai-vision-sdk\scripts\get_face_access_token.ps1:21 char:13+ $response = Invoke-RestMethod -Uri "https://face-sdk-gating-helper-2. ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Token generated successfully.

Expected/desired behavior

The token is generated successfully.

OS and Version?

Windows 11 Enterprise. 23H2

Versions

latest

Mention any other details that might be useful

Access to restricted face API and All Face REST API works fine.

image


Thanks! We'll be in touch soon.

@github-staff github-staff deleted a comment from eolamisan Aug 27, 2024
@diljale
Copy link
Contributor

diljale commented Sep 19, 2024

Hello,
Can you please ensure you have met the prerequisites to use FaceLiveness feature ? https://github.com/Azure-Samples/azure-ai-vision-sdk/blob/main/GET_FACE_ARTIFACTS_ACCESS.md#prerequisites

Thanks

@eolamisan
Copy link
Author

Azure account with Cognitive Services Contributor role with subscription-level scope, or equivalently, the following permissions with subscription-level scope:
Microsoft.Authorization/permissions/read
Microsoft.CognitiveServices/accounts/listKeys/action
Microsoft.CognitiveServices/accounts/regenerateKey/action

I have contributor role on the face resource. Don't have roles for the subscription.

@diljale
Copy link
Contributor

diljale commented Sep 20, 2024

Assuming you have already done step 1 which is "An Azure Subscription ID approved for Face Liveness Detection (complete the Face Recognition intake form)."

Then i think you just need to provide permissions needed in Step 2 for subscription-level-scope, to access the artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@eolamisan @diljale and others