Foundry Agent MS Learn Tutorial - Code Interpreter doesn't function

John Dees 50 Reputation points
2025-11-25T21:17:19.33+00:00

I apologize, I could not find the tag for Microsoft Foundry.

I'm following a MS Learn tutorial, and launched this exercise: https://microsoftlearning.github.io/mslearn-ai-agents/Instructions/01-agent-fundamentals.html

I completed the exercise successfully, except the part at the end where the agent should use Code Interpreter to generate a file. Code Interpreter has been added successfully on the agent, but when the prompt asks it to generate an expense file, it tries and fails to use code interpreter a few times and then the agent gives up saying "It appears a technical issue is preventing me from generating the file. If you prefer, I can provide the expense claim details for you to manually enter, or I can keep trying alternative methods to create the file for you. Let me know how you'd like to proceed!"

I can see in the thread logs the code interpreter is generating no output each time it tries.

I cannot figure out why code interpreter does not work.

What information do you need from me? Or what else can I try?

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
{count} vote

Answer accepted by question author
  1. Manas Mohanty 13,255 Reputation points Moderator
    2025-11-27T11:03:24.37+00:00

    Hi John Dees

    I just tested the instructions in South Central US region; it is able to generate response at my side.

    Have tested both in Visual Studio and Org subscription.

    Attached screenshot for your confidence.

    User's image

    There might be transient issue at South Central US side.

    Please test in other available regions and let me know. Also, share the prompt/file if they are different than the ones in MS learn tutorial.

    Thank you for using Azure Services.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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