There was an error generating a response

Peter Derkx 5 Reputation points
2024-08-19T13:12:16.9833333+00:00

I keep on having this message when deploying a webapp within Azure AI studio. How can I fix this please?

There was an error generating a response. Chat history can't be saved at this time. Error code: 400 - {'error': {'requestid': '55900245-34d7-4c40-a5c8-d92559f0549e', 'code': 400, 'message': 'Failed to get managed identity token. Response: {"error":{"code":"ManagedIdentityIsNotEnabled","message":"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."}}'}}

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,599 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,966 Reputation points Moderator
    2024-08-19T21:52:31.6266667+00:00

    Hello @Peter Derkx

    Thanks for reaching out to us, this is a known ongoing issue. The Product Owners have identified the cause of the issue. The fix will be deployed soon. The eta for the web app fix is 8/23.

    For the time being, until the fix, follow the below workaround:

    Workaround:

    The below workaround has been provided to update and deploy the webapp manually from the azure portal.

    1. Go to azure portal and find your web app
    2. Under Environment Variables, look for these 2 variables: Azure OPENAIEmbeddingEndpoint and AzureOpenAiEmbeddingKey. 
    3. Set these 2 values to the endpoint and key associated with your embedding model. This information can be found on the deployments tab of AI studio. Make sure that the AZURE_SEARCH_KEY variable is populated.
    4. Clear any value for AzureOpenAiEmbeddingName
    5. Save the updated Environment variables
    6. Open the web app from the azure portal itself (rather than from the studio)

    I hope the workaround works for you, let us know if you have any question.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.