Hi Chris Gray,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
There is currently a known issue in Azure Function App with Flex consumption plan. Below are the issues open in GitHub.
- https://github.com/Azure/azure-functions-host/issues/11284 - checking for duplicates in host
- https://github.com/Azure/azure-functions-dotnet-worker/issues/3158 - checking for duplicates on worker side.
Unfortunately, currently there is no other way to recover the function app host once code with duplicate functions is deployed. Function App would have to be recreated.
To avoid this issue in future, we need to debug code in local. Functions CLI tools does throw an error while running project.
Hope this helps! Please do let me know if you have any other questions on this.