Skill 3.2.1
Build serverless APIs, including implementing triggers and bindings
Key Concepts
In the Python v2 programming model, a FunctionApp object in function_app.py registers functions with decorators. @app.route(route="orders/{id}", methods=["GET"]) creates an HTTP trigger that receives an HttpRequest and returns an HttpResponse; the authorization level (anonymous, function or admin) decides whether a key is required. Blueprints group related functions into modules.
Other triggers include timer, Service Bus, Event Grid, Event Hubs, Cosmos DB and Blob. Input bindings read data, such as a Cosmos DB item, and output bindings write it, such as a Service Bus message, by assigning a value instead of calling an SDK. A binding's connection names an app setting prefix; identity-based connections use settings such as ServiceBusConnection__fullyQualifiedNamespace and the function app's managed identity.