An Azure service that provides an event-driven serverless compute platform.
Welcome to Microsoft Q&A,
Hello @Serge Zuidinga I hope you are doing well,
Thank you for the detailed troubleshooting. The fact that the deployment is reported as successful but multiple Flex Consumption instances consistently start with 0 functions found, without worker or host exceptions, is important.
Since this is a Flex Consumption app using Python remote build, I would first verify the deployment package and trigger synchronization rather than assume the application code is the cause. Microsoft documents that Flex Consumption uses the One Deploy model and that the deployed package must contain the files and dependencies required by the function app.
I recommend:
Run the Flex Consumption Deployment diagnostic from Diagnose and solve problems and check the package/deployment status.
Confirm that the deployed package contains the expected application files, including host.json, your Python function code, and the dependencies produced by the remote build.
Verify that the deployment completed trigger synchronization. Microsoft notes that Flex Consumption deployments require trigger synchronization, particularly when the deployment package changes.
- Since you are using GitHub Actions with
remote-build: true, confirm that the remote build completed successfully. This is the documented deployment approach for Python on Flex Consumption.
I would not recommend adding an arbitrary dependency to requirements.txt just to force Oryx to behave differently. There is not enough evidence in the information provided to conclude that this is the cause.
If the deployment package is correct, trigger synchronization completes successfully, and multiple new instances still consistently report 0 functions found, then the behavior warrants further investigation by Microsoft, particularly given that you have reproduced it across multiple HostInstanceIds.
When opening a support request, include the deployment ID, HostInstanceIds, timestamps, region, runtime/host versions, and the relevant deployment and host logs. This will allow the engineering team to investigate the platform-side specialization and function indexing behavior.
If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.