Hi, When I create an azure function app using command :
az functionapp create \
--name "$functionApp"\
--resource-group "$resourceGroup" \
--storage-account "$storageAccount" \
--consumption-plan-location $location \
--runtime dotnet \
--runtime-version 6 \
--functions-version 4 \
I expect the function app to be created to using function app version 4 with runtime version 6 , but in my azure account I see the error that I am using unsupported version (aka 3.1 on v4)
If I leave the optional runtime-version entirely off I see the same behavior, saying unsupported version.
to fix this error I have to manually set the runtime version 6 with command :
az functionapp config set \
--net-framework-version v6.0 \
--name "$functionApp"\
--resource-group "$resourceGroup" \
this then fixes the warning and we correctly use v6:
If I do the same process using the azure UI it works as expected and I dont need to run any manual commands after to fix this:
no warning:
So my question is, why is the setting --runtime-version 6 being ignored when running the command with CLI? Or is there some other way to specify v6 in the create command?