Do we need a linux agent in this case?
As far as I know, you don't need to use a Linux agent to build the Python project.
You can directly use the python package built by windows agent to deploy to the linux azure function.
When you using tasks(e.g. Azure Functions
task or Azure App Service deploy) to deploy the package to Azure Function app, it will directly publish the packages and the Configuration to Azure Function app.
The prerequisite is that the deployed package meets the requirements of the task: the package is a zip or war file. So you need to use the Archive files task to pack the published files.
If the configuration of the python project can be run in the linux system, the same configuration can also be run in the linux Function App.
For more details about deploy a Python project to Azure, you could refer to this doc: deploy a Python web app to Azure App Service on Linux
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…