Unable to deploy azure function to Function App with Flex Consumption plan

Josip Skender 0 Reputation points
2025-01-07T13:06:47.4666667+00:00

Hello,

I'm having issues deploying a simple Azure Function to a Function app, only when the function app has a Flex Consumption plan.

The deployment runs normally to any other plan for Azure functions, with no changes.

Here is the error info:

User's image

I've tried with different Python versions. No matter the version I can deploy the function to all of my other function apps except the Flex consumption one.

Thanks!

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

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 24,946 Reputation points Microsoft Employee Moderator
    2025-01-08T06:58:50.1066667+00:00

    @Josip Skender Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    • Are you deploying this python from visual studio code? or function core tools? or any other?
    • Flex consumption apps support only Onedeploy deployment technology refer to this on how to deploy function to flex function using one deploy from vscode.
    • Flex Consumption need the below app settings to run the function check and remove if there any other app setting present "DEPLOYMENT_STORAGE_CONNECTION_STRING","AzureWebJobsStorage", "APPLICATIONINSIGHTS_CONNECTION_STRING (if Application setting is enabled)"
    • If you are deploying from vscode and still facing the issue I would suggest you to terminate/close existing vscode windows and run in admin mode, try deploying your functions.

    Hope this helps, let me know if you have any further questions on this.

    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.