Reputation: 423
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)
Also I update versions inside setting.json file of function application and update "extensionBundle" version values in host.json file
After updating those files, I update function by docker deployment. But it still showing me warning about runtime version update.
I had updated runtime version of another function app which has httpTrigger trigger functions.
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?
Upvotes: 1
Views: 1407
Reputation: 423
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.
Upvotes: 0
Reputation: 8455
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"
}
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:
Note: AF - Azure Function, AFCT - Azure Functions Core Tools
Upvotes: 2