-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[BUG] FormRecognizer and TextAnalytics clients don't work TokenCredential #12777
Comments
@maririos per TA as well. |
My cog services resource created with Terraform has this endpoint: https://westus.api.cognitive.microsoft.com/
I created a new resource with the portal and it has this endpoint: https://jongfrtest.cognitiveservices.azure.com/ TokenCred works with https://jongfrtest.cognitiveservices.azure.com/ but not https://westus.api.cognitive.microsoft.com/ |
I have verified that this issue surfaced because I was using a region endpoint instead of an endpoint with a custom subdomain. I have created the following issues to help improve that experience. Closing this issue.
|
Thanks @jongio for the investigation and following up. Will triage the issues created and work on the improvements. |
az login
az ad signed-in-user show --query objectId --output tsv
Cognitive Services User
roleAccording to docs, this should work.
https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.FormRecognizer/1.0.0-preview.3/api/index.html#create-formrecognizerclient-with-azure-active-directory-credential
I ensured that the current CLI user has perms via portal:
azsdke2e
The text was updated successfully, but these errors were encountered: