StudyToCert

All certifications / AI-200 / Lessons

Microsoft Certified: Azure AI Cloud Developer Associate AI-200 (replaced AZ-204) · Domain 3: Connect to and consume Azure services

Azure Functions Python v2 model: function_app.py, decorators, triggers and input/output bindings

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Azure Functions lets you run a small piece of code whenever something happens, without looking after a server. Every function has exactly one trigger, the thing that starts it, like a web request, a timer or a new file. It can also have bindings, which are shortcuts for reading data in or sending data out without writing connection code yourself. In the current Python style, called the v2 model, you write everything in one file named function_app.py and mark each function with decorators: short labels starting with @ placed just above the function, which tell Azure what starts it and what it connects to. It is like putting a shipping label on a box instead of filling in a separate form.

Rosa, a new developer at Juniper Health Partners, messages you on her first week: "I deployed the intake function and Azure says there are zero functions in the app. The tutorial I followed had a folder per function with a function.json file, but the project template gave me one file called function_app.py full of @ symbols. Which one is right, and why can't Azure see my function?" You open her project and see the problem within a minute. What does a modern Python function app look like, and how do its pieces fit together?

Azure Functions runs small pieces of code in response to events without you managing servers. Each function has exactly one trigger, the event that starts it, such as an HTTP request, a timer or a queue message. Optionally it has bindings, which connect it declaratively to other services for input and output. Bindings remove boilerplate: instead of writing SDK code to open a client, authenticate, read a blob or send a queue message, you declare the binding and use a parameter. The runtime does the connecting, reading and writing around your code.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study AI-200 for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the AI-200 study plan