skip to Main Content

I have queueTrigger azure functions. I am receiving warning about function runtime version update. To update runtime version, I have followed some steps like I update value of "FUNCTIONS_EXTENSION_VERSION" key to "~4" and check "Function runtime settings" tab where Runtime version showing as custom(~4)
enter image description here
enter image description here

Also I update versions inside setting.json file of function application and update "extensionBundle" version values in host.json file

enter image description here

enter image description here

After updating those files, I update function by docker deployment. But it still showing me warning about runtime version update.

enter image description here

I had updated runtime version of another function app which has httpTrigger trigger functions.

enter image description here

As you can also there is some UI difference also between Function runtime settings tabs of both function applications (In 1st Runtime version is with custom string and in 2nd it without that string). In this queueTrigger function app its not updating runtime version as it still showing warning. Is it something which I doing wrong? How can I update it then? Can someone help me regarding this?

2

Answers


  1. Chosen as BEST ANSWER

    I fixed this issue by making change in Dockerfile. Previously I was pulling "mcr.microsoft.com/azure-functions/python:3.0-python3.8" docker image. I have changed this image to "mcr.microsoft.com/azure-functions/python:4-python3.8" which fix this issue.


  2. Deployed the Python Versioned 3.6 Azure Function Version 3 basic Http Trigger using VS Code:

    This is my settings.json of the above project:

    {
    "azureFunctions.deploySubpath": ".",
    "azureFunctions.scmDoBuildDuringDeployment": true,
    "azureFunctions.pythonVenv": ".venv",
    "azureFunctions.projectLanguage": "Python",
    "azureFunctions.projectRuntime": "~3",
    "debug.internalConsoleOptions": "neverOpen"
    }
    
    

    enter image description here

    According to MSFT Doc of Azure Functions Version & Python Compatibility, Python 3.6 Version is compatible to AFCT (Azure Functions Core Tools) Version 3 only.

    Upgrade Process:

    1. In Azure Portal Function app > Configuration > Function Runtime Settings > Runtime version set 3 to 4.
    2. You have to upgrade the Python Version in Local Project along with code changes that are compatible to AFCT Version 4 and Python Versions (>3.7).

    enter image description here

    1. This MS Doc of Upgrading Python AF Local Project clearly explains what has to updated before upgrading to the AFCT Version 4.

    Note: AF – Azure Function, AFCT – Azure Functions Core Tools

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search