Hello @sami jan , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: Document Intelligence AI returns 404 Resource Not Found error
Solution:
Try to check the tenants if you have multiple. In this issue they had 3 tenants in azure and 2 of them were named "default directory" - removed the 2 that were redundant, and it worked. Looks like the API looks up the tenants and tries to find the key in the first "default directory.
Other possibilities for this error are, since Public preview version 2023-10-31-preview is currently only available in the following Azure regions:
- East US
- West US2
- West Europe
The 404 Resource Not Found error occur if you are trying to access the 2023-10-31-preview version of the Document Intelligence API from a region other than East US, West US2, or West Europe.
If you have any other questions or are still running into more issues, please let me know.
Thank you again for your time and patience throughout this issue.
Regards,
Vasavi
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.