-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #19442
Comments
@deyaaeldeen I know you've been working on similar issues in TA. What's your advice here? |
@witemple-msft we went to the archboard for this as tracked by Azure/azure-sdk#3353. Next step is to design the actual cloud configuration. |
@deyaaeldeen I'm mortally certain that I've seen an automatic cloud config system somewhere in really old code. ms-rest-azure-js maybe? |
@ramya-rao-a This won't make it into January. I'm going to add it to Feb and take a look at adding something like an |
@HarshaNalluru About the fix of this issue, how is the current progress? Or what are your plans? |
Hi @v-xuto, #20522 should fix the problem, but the samples were failing in the China Cloud with conflict errors as far as I recall, which I thought could be avoided if the samples were run sequentially(one after the other). |
@HarshaNalluru Thank you for your prompt reply. I look forward to your PR being merged soon. |
modify putLab in labservices (Azure#19442) Co-authored-by: ZiWei Chen (WICRESOFT NORTH AMERICA LTD) <v-ziweichen@microsoft.com>
@HarshaNalluru Regarding this issue, what is the current progress? |
Recently, I've tested the service in those regions, the service is flaky right now, so blocked on this. |
@HarshaNalluru Got it. Please let me know if there is any progress. Thanks in advance. |
Hi @zzhxiaofeng, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
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: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.
the value of scope is here.
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, @ramya-rao-a, @meeraharidasa, @jeremymeng for notification.
The text was updated successfully, but these errors were encountered: