Hi @Paul D'hertoghe,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this.
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue :
Azure Function App fails to start after being deployed from Azure DevOps
Solution :
the publish devops task needs self-contained to be set to true. It seems that the default linux environment doesn't have .NET 8 installed?
- The default Linux environment for Azure Functions currently does not support .NET 8 as a framework-dependent runtime.
- If you don't set
--self-contained true
, your app assumes that .NET 8 is already installed on the Azure Function host. - The latest working DevOps task you provided creates a self-contained deployment that bundles the .NET runtime and all necessary dependencies, ensuring it runs smoothly in Azure Linux Function environments.
Please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefited from it.