Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,348 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to use input and output bindings on Azure function app that is written using python programming model v2 and an ASGI Web framework - FastAPI?
How do I add bindings (input and output) to endpoints defined like the below? Is it possible? How would you add a binding to that GET handler? e.g. blob storage output binding
import azure.functions as func
from fastapi import FastAPI, Request, Response
fast_app = FastAPI()
@fast_app.get("/return_http_no_body")
async def return_http_no_body():
return Response(content="", media_type="text/plain")
app = func.AsgiFunctionApp(app=fast_app,
http_auth_level=func.AuthLevel.ANONYMOUS)