My Azure Function App only works on Premium plan

Michael Goodman 30 Reputation points
2024-07-12T17:20:02.8633333+00:00

We have a simple python Azure Functions App that deploys perfectly to Premium function apps, but when deploying to a consumption plan app, with identical config, networking/identity/environment variables, etc... it doesn't detect any functions...I've been side by side comparing the configuration, runtime versions/specs and similar, and have found no distinct difference between the two plans other than that consumption plan just does not seem to load my function.

Additionally, once the deployment is complete for the consumption plan, if I select App Files in the portal, I simply get a "Unable to fetch file content." error as below:User's image

I have application insights enabled and no logging is showing any error as such. However, when first initiated, there is occasionally a "1 function detected, 0 functions loaded" message.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,626 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 5,981 Reputation points
    2024-07-13T09:14:40.78+00:00

    Hello Michael Goodman,

    I understood that you want to deploy an existing function app runing on premium app plan to a consumptio plan , in that case you need to have some specific considerations:

    • Virtual Network: Premium plan supports virtual network integration and triggers, Consumption plan doesn’t.
    • Private Endpoints: Only available in Premium plan.
    • Container Support: Premium plan supports Linux container deployments.
    • Scaling: Both plans scale dynamically, but Premium plan allows pre-warming instances.
    • Billing: Consumption plan bills based on executions and usage, Premium plan bills based on allocated resources.

    If you are using for example Virtual network integration you can try using flex cnsumption plan (https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan)

    Besides that you can start from the begining with few steps ( https://azguy.cloud/python-on-azure-functions-the-basics-aed40fb022e4)

    If the information helped address your question, please Accept the answer.

    Luis

    0 comments No comments