Question about Azure AI Foundry Course – Managed Identity Issue

Vikas Salve (MBS MT) 5 Reputation points
2025-08-05T08:46:20.64+00:00

Hi Folks,

I Deploy Your AI Application , I tried deploying the GPT-4o agent to an Azure Web App. However, I'm running into the following issue in the Contoso web app:


Error code: 400 - {'error': {'requestid': 'XXXXX', '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."}}'}}

To troubleshoot, I’ve already assigned the following roles:

  • Search Service
  • Search Index Data Contributor
  • Search Index Data Reader

But I’m still seeing the error. Do you have any suggestions on how to resolve this?

Here’s the course link for reference:

🔗 Building in Azure AI Foundry

Thanks in advance for your help, and thanks again for the great course!

Best regards,

Vikas Salve

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
{count} votes

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.