Ota haltuun uudet Solution Area Playbookit ja kasvata liiketoimintaasi!
July 17, 2025[In preview] Public Preview: AZNFS (3.0) for BlobNFS with FUSE for superior performance
July 17, 2025As AI agents evolve, they increasingly need to do more than just respond to text—they must analyze structured data, reason over complex patterns, and perform custom computations on demand. This is especially true in real-world scenarios where users upload large CSV files and expect agents to perform tasks like exploratory data analysis or generating insights—all from natural language prompts.
Why This Matters
Â
Â
The above image captures why this matters – behind this need lies a real challenge that many businesses face today. Data is diverse, fragmented, and large. It often comes in the form of CSV files, Excel spreadsheets, or JSON—containing thousands or even millions of rows. But this raw data is rarely useful on its own.
It typically requires:
- Cleaning and transformation
- Custom logic to extract insights
- Visualizations or summaries that make the data actionable
These steps are often manual, error-prone, and time-consuming—especially for users without data science or engineering expertise.
Introducing “Python Code Execution” in Logic AppsÂ
We’re excited to announce support for Python code execution inside Logic Apps Agent Loop, powered by Azure Container Apps (ACA) session pool.
Â
This capability enables Logic Apps developers to use Python Code Interpreter as a tool in Agent loop to:
- Accept natural language instructions
- Automatically generate Python code
- Execute that code securely on uploaded datasets (like CSV or JSON)
- Return insights, visualizations, or next-step data back to the user
This brings the power of a code interpreter—similar to ChatGPT’s advanced data analysis tool—right into the Logic Apps runtime. Instead of writing code or manually manipulating spreadsheets, users can now describe their intent in natural language—for example:
- “Find the top 5 products by revenue”
- “Forecast demand by region for the next quarter”
- “Highlight customer segments based on purchase patterns”
Under the hood, Logic Apps now enables this flow by interpreting the instruction, generating Python code, executing it securely in an isolated environment, and returning usable results— summaries, forecasts, or data transformations—within the same workflow.
Â
Real-World Use Cases
This opens up a wide range of possibilities for businesses looking to embed intelligence into their automation:
- Sales & Marketing: Upload raw sales data and get on-the-fly summaries, forecasts, or regional comparisons.
- Finance: Analyze expense reports, detect anomalies, or generate quarterly breakdowns from Excel exports.
- Operations: Clean large log files, surface exceptions, and generate insights to improve reliability.
-  Data Exploration: Let business users ask questions like “Which region had the highest YoY growth?” without writing a single line of code.
Â
How It Works
- The action to execute Python code is powered by Azure Container Apps (ACA)session pool. Azure Container Apps dynamic sessions provides fast and scalable access to a code interpreter. Each code interpreter session is fully isolated by a Hyper-V boundary and is designed to run untrusted code. By enabling network isolation on ACA, your data never leaves the defined network boundaries
- In Logic Apps, choose the action to execute Python code. You need to create a connection to the ACA session before you use the action. The code to execute can be authored by the developer or generated by the agent
- Optionally, upload file to the ACA session which can then be referenced as a data source in the Python code
- Run the workflow to get insights/results from the action execution
Getting Started
The demo video shows how to use this feature. If you have any questions, comments or feedback, please reach out to us via this form: http://aka.ms/la/feedback
Â
Â