The following app setting Site.SiteConfig.AppSettings.FUNCTION_WORKER_RUNTIME for flex consumptition sites is invalid

Mirra Artificial Intelligence 0 Reputation points
2025-04-07T15:05:11.3+00:00

Hello,

I am trying to upload code to my function app on flex cunsomption plan. Doing it using core tools didn't work, so I am trying using Azure Cli.

The following command returns a success code:

az functionapp deployment source config-zip -g {my_resource_group} -n {my_application} --src {my_zip_file}.zip

But no functions are displayed in the "functions" tab (they are successfully displaed and called when running locally).

I suspect the reason is that the "FUNCTIONS_WORKER_RUNTIME" is not set among the environment variables. My functions runs in the "dotnet-isolated" runtime. So I try to set this variable to "dotnet-isolated" and get the following error:

"The following app setting (Site.SiteConfig.AppSettings.FUNCTIONS_WORKER_RUNTIME) for Flex Consumption sites is invalid. Please remove or rename it before retrying."

Any help would be appreciated.

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

1 answer

Sort by: Most helpful
  1. Pravallika Kothaveeranna Gari 955 Reputation points Microsoft External Staff Moderator
    2025-04-17T07:49:53.5066667+00:00

    Hi Mirra Artificial Intelligence,

    Make sure you have below settings added in Azure function App with Flex Consumption under Settings=>Environment Variables=>App Settings.

    
    "DEPLOYMENT_STORAGE_CONNECTION_STRING"
    
    "AzureWebJobsStorage"
    
    "APPLICATIONINSIGHTS_CONNECTION_STRING(If needed) 
    
    

    enter image description here

    Validate the Storage configuration of function App under Deployment Settings.

    enter image description here

    You can zip deploy the function to flex consumption plan using Azure CLI.

    I have tested the same and able to perform zip deploy using command az functionapp deployment source config-zip -g "Resourcegroup" -n FunctionappName --src "FunctionProject.zip" --build-remote true.

    
    D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\cryptography/hazmat/backends/openssl/backend.py:17: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python.
    
    Getting scm site credentials for zip deployment
    Starting zip deployment. This operation can take a while to complete ...
    Deployment endpoint responded with status code 202 for deployment id "6643302e-9612-4d6b-b6e4-72881fb048af"
    Waiting for sync triggers...
    Checking the health of the function app
    "Deployment was successful.
    

    Portal:

    Deployed function is available under FunctionApp=>Overview.

    enter image description here Hope it helps!


    Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.

    User's image

    If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.


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.