Welcome to Microsoft Q&A Platform!
Thanks for reaching out. When you're deploying to the Azure Functions Flex Consumption plan, you can only use the One Deploy method. It looks like your current error is because your deployment is trying to use another method, probably zip deploy, which won't work here.
To fix this, you'll need to tweak your Azure DevOps pipeline to use One Deploy. This means updating your deployment task to specify One Deploy and setting up a package source with the /onedeploy extension in your deployment config.
If your pipeline is creating a zip file during the build, you'll need to make some changes to meet the One Deploy requirements. Usually, this means making the deployment package accessible to the Functions host and ensuring the settings are correctly configured.
References:
- Automate resource deployment for your function app in Azure Functions (flex-consumption-plan)
- Deployment technologies in Azure Functions
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer and Yes for "Was this answer helpful." And if you have any further questions, let us know.