sample-app-aoai-chatGPT icon indicating copy to clipboard operation
sample-app-aoai-chatGPT copied to clipboard

ManagedIdentityIsNotEnabled Error

Open MJonker opened this issue 7 months ago • 1 comments
trafficstars

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

Image

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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

MJonker avatar Apr 11 '25 15:04 MJonker

Without the datasource it works

MJonker avatar Apr 11 '25 15:04 MJonker

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 11 '25 02:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 25 '25 02:06 github-actions[bot]