$funcName = "function-name-func"
$resourceGroup = "resource-groupname-rg"
$funcVersion = "~1"
az functionapp config appsettings list --name $funcName --resource-group $resourceGroup --query "[?name=='FUNCTIONS_EXTENSION_VERSION'].value"
or
az functionapp config appsettings set --name $funcName --resource-group $resourceGroup --settings FUNCTIONS_EXTENSION_VERSION=$funcVersion