Can Azure Logic Apps call custom routes in a Python FastAPI Azure Function App using the native Azure Functions connector?

Elham 10 Reputation points
2026-11-12T16:21:13.7266667+00:00

I have an Azure Function App written in Python. The application uses FastAPI (via azure.functions.AsgiMiddleware) to expose multiple REST API endpoints with custom routes.

I would like to call these endpoints from an Azure Logic App using the native Azure Functions connector.

However, when I try to configure the connector in Logic Apps and select the FastAPI entrypoint function, I encounter an error indicating that custom routes are not supported.

My questions are:

Does the native connector support Python Function Apps that use FastAPI through AsgiMiddleware, or does it require each endpoint to be implemented as a separate Azure Function with an HTTP trigger?

If this is not supported, is there an alternative way to achieve this while retaining the use of managed identity for authentication?

My goal is to keep my existing FastAPI application with multiple endpoints and invoke those endpoints from Logic Apps, with managed identity for auth.

Thanks in advance!

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.