A function app runs on a specific version of the Azure Functions runtime. There have been four major versions: 4.x, 3.x, 2.x, and 1.x. By default, function apps are created in version 4.x of the runtime.
Update via Azure Portal
We need to restart the Function App after changing the runtime.
Update via Powershell