sample-app-aoai-chatGPT
sample-app-aoai-chatGPT copied to clipboard
ManagedIdentityIsNotEnabled Error
Describe the bug After deploying the webapp from the Azure AI Foundry playground I get this error in chat UI
Managed Identity (MI) is not set for this account while the encryption key source is \'Microsoft.KeyVault\', customer managed storage or Network Security Perimeter is used."
To Reproduce Steps to reproduce the behavior: Go to the playground Select model (GTP-4o-mini) Give a system prompt Apply Changes Klik the deploy button
Expected behavior the chat functionality as intended by this app
Screenshots
Configuration: Please provide the following
- Azure OpenAI model name and version: gpt-4o-mini (version:2024-07-18)
- Is chat history enabled? No
- Are you using data? If so, what data source: Azure AI Search
Logs
It appears to occur in the communication with the (openai) model:
File "/tmp/8dd7811eacfd478/app.py", line 430, in send_chat_request 2025-04-11T15:25:04.7572428Z raw_response = await azure_openai_client.chat.completions.with_raw_response.create(**model_args) 2025-04-11T15:25:04.7572453Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-04-11T15:25:04.7572478Z File "/tmp/8dd7811eacfd478/antenv/lib/python3.11/site-packages/openai/_legacy_response.py", line 373, in wrapped 2025-04-11T15:25:04.7572501Z return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) 2025-04-11T15:25:04.7572527Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-04-11T15:25:04.7572555Z File "/tmp/8dd7811eacfd478/antenv/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 1661, in create 2025-04-11T15:25:04.7572612Z return await self._post( 2025-04-11T15:25:04.7572633Z ^^^^^^^^^^^^^^^^^ 2025-04-11T15:25:04.7572661Z File "/tmp/8dd7811eacfd478/antenv/lib/python3.11/site-packages/openai/_base_client.py", line 1843, in post 2025-04-11T15:25:04.7572687Z return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) 2025-04-11T15:25:04.7572713Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Without the datasource it works
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.