Issues with deploying application to Flex Consumption Apps

Chris Gray 10 Reputation points
2024-09-12T08:37:56.1466667+00:00

I have an Azure DevOps Pipelines "AzureFunctionApp@2" task which works fine for normal Consumption Plans. However, when I try to deploy to FlexConsumption Apps this does not work. I have added "isFlexConsumption: true" to the task, but I get the following error:

##[error]Failed to deploy web package to App Service.

##[warning]Can't find loc string for key: KuduStackTraceURL

##[error]KuduStackTraceURL https://funcname:***@funcname.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace

##[error]Error: Error: Failed to deploy web package to App Service. Not Found (CODE: 404)

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,278 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Udaiappa Ramachandran 726 Reputation points MVP
    2025-01-02T12:07:32.87+00:00

    Hello,

    Flex consumption is Linux-based; ensure your codebase is tested in a Linux environment, such as a Linux container.

    For details review here: https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan??WT.mc_id=AZ-MVP-5004665

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.