Debugging Foundry hosted agents v2 with Python
May 5, 2026 2 min.
Introduction
The new azd ai agent init command provisions a Python project targeting Microsoft Foundry. Out of the box, this is a great way to get started quickly, but one friction point immediately emerges: pressing F5 in Visual Studio Code does not work. The project lacks the VS Code configuration file needed for debugging.
Thankfully, this is a quick fix.
The solution
One configuration file needs to be added to the .vscode folder at the root of your workspace.
