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

[Form Recognizer]It will return error when use documentAnalysisClient with AAD authentication to run integration tests on UsGov cloud and China cloud #29480

Open
zedy-wj opened this issue Apr 29, 2024 · 3 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer Service Attention This issue is responsible by Azure service team. test-reliability Issue that causes tests to be unreliable test-sovereign-cloud

Comments

@zedy-wj
Copy link
Member

zedy-wj commented Apr 29, 2024

We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.

Error Description:
When we use documentAnalysisClient with azure active directory credential to run integration tests on UsGov cloud and China cloud, it will return an error. The error message is shown as following, for more details please check here:
image

Error Track:
The failed reason is that when we use azure active directory credential, the scope of credential is just supported on Public cloud. The scope of credential defines the set of permissions being requested by the application. In form recognizer client, the process code is here.
image
the value of scope is here.
image

Expected Behavior:
Add different scopes for different clouds in Form Recognizer SDK.
The value of the scope in different clouds is follow:
Public cloud: https://cognitiveservices.azure.com/.default
UsGov cloud: https://cognitiveservices.azure.us/.default
China cloud: https://cognitiveservices.azure.cn/.default

@benbp, @meeraharidasa, @jeremymeng for notification.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team. labels Apr 29, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ctstone @vkurpad.

@zedy-wj
Copy link
Member Author

zedy-wj commented Apr 29, 2024

Re-open for #19442

@v-xuto v-xuto added needs-team-triage This issue needs the team to triage. test-sovereign-cloud labels Apr 29, 2024
@jeremymeng jeremymeng added test-reliability Issue that causes tests to be unreliable and removed needs-team-attention This issue needs attention from Azure service team or SDK team needs-team-triage This issue needs the team to triage. labels Apr 29, 2024
@HarshaNalluru
Copy link
Member

HarshaNalluru commented May 6, 2024

Reference #20522
Service has not been reliable in this aspect, we'll wait for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cognitive - Form Recognizer Service Attention This issue is responsible by Azure service team. test-reliability Issue that causes tests to be unreliable test-sovereign-cloud
Projects
None yet
Development

No branches or pull requests

4 participants