Trying to upgrade my local vs code azureFunctions.projectRuntime from v3 to v4 for my azure function app written in python.
I have installed the azure function tools 4 using both the installer and the npm command, installed .net runtime 6.0 sdk but still not able to see the Azure Functions v4.
2
Answers
I have installed .net 6.0 already as mentioned above and installed Azure Function Tools 4. When I upgraded the VS Code from 1.51 to the latest one, I uninstalled Azure Functions, Account, and Resources extensions. Now it is able to detect the Azure Function runtime v4.
Firstly there are a few pre-requistes to be followed for the upgrade. So please be aware of the breaking changes between v3 and v4 as mentioned here.
You need run the
pre-upgrade validator
and also confirm before the upgrade process. The steps are outlined hereYou also need to upgrade your local project before you publish it to Azure.
While running it on windows you need to ensure that you have enabled .NET 6.0 which is a must for the v 4.x Function app runtime and then republish your app.
More information, for your reference is here.