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

The managed identity configuration is invalid: Managed identity is not enabled for the current resource -- Document Intelligence #1391

Open
jmasengeshomsft opened this issue Oct 7, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@jmasengeshomsft
Copy link

Describe the bug

The application does not process new documents successfully when AI services are private endpoints enabled.
See the error bellow, its logged in Application Insights:


Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/opentelemetry/trace/init.py", line 590, in use_span
yield span
File "/usr/local/lib/python3.11/site-packages/azure/core/tracing/decorator.py", line 105, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/ai/formrecognizer/_document_analysis_client.py", line 198, in begin_analyze_document_from_url
return _client_op_path.begin_analyze_document( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/core/tracing/decorator.py", line 105, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/ai/formrecognizer/_generated/v2023_07_31/operations/_document_models_operations.py", line 518, in begin_analyze_document
raw_result = self._analyze_document_initial( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/azure/ai/formrecognizer/_generated/v2023_07_31/operations/_document_models_operations.py", line 443, in _analyze_document_initial
raise HttpResponseError(response=response)
azure.core.exceptions.HttpResponseError: (InvalidRequest) Invalid request.
Code: InvalidRequest
Message: Invalid request.
Inner error: {
"code": "InvalidManagedIdentity",
"message": "The managed identity configuration is invalid: Managed identity is not enabled for the current resource."
}

@jmasengeshomsft jmasengeshomsft added the bug Something isn't working label Oct 7, 2024
@Roopan-Microsoft
Copy link
Contributor

Hi @jmasengeshomsft - Thanks for your feedback, We are investigating the issue from our end.

Based on the exception, we see its failing for Azure Form Recognizer resource. Will keep you posted.

@Prasanjeet-Microsoft
Copy link
Contributor

Hello @jmasengeshomsft , Could you please provide the steps to reproduce this issue? This will help us identify and troubleshoot it more effectively.

1 similar comment
@Prasanjeet-Microsoft
Copy link
Contributor

Hello @jmasengeshomsft , Could you please provide the steps to reproduce this issue? This will help us identify and troubleshoot it more effectively.

@Vinay-Microsoft
Copy link

Vinay-Microsoft commented Oct 21, 2024

Hi @jmasengeshomsft this is an enhancement request no private endpoint in CWYD accelerator. So changing it from bug to enhancement request. Please let me know if you have any questions about it.

@Vinay-Microsoft Vinay-Microsoft added enhancement New feature or request and removed bug Something isn't working labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants