是否可以在 linux 上使用我的 azure functionapp 运行?

Is it possible to have my azure functionapp run on linux?

我正在使用 ARM 模板来创建我的资源,但我似乎无法弄清楚如何获得实际的 OS 运行 函数应用 linux.

我想这样做的原因只是为了我可以正确构建本机模块。有几个本机模块很常见,因此我需要在相同版本和 OS 中构建它们。当我过去在 AWS 中完成此操作时,我使用 docker 创建正确版本的 linux 并使用节点在部署前构建模块。

这是我的相关 ARM 模板:

{
    "type": "Microsoft.Web/serverfarms",
    "apiVersion": "2015-04-01",
    "name": "[variables('appname')]",
    "location": "[parameters('location')]",
    "properties": {
        "name": "[variables('appname')]",
        "computeMode": "Dynamic",
        "sku": "Dynamic"
    }
},
{
    "apiVersion": "2015-08-01",
    "type": "Microsoft.Web/sites",
    "name": "[variables('appname')]",
    "location": "[parameters('location')]",
    "kind": "functionapp",
    "dependsOn": [
        "[resourceId('Microsoft.Web/serverfarms', variables('appname'))]",
        "[resourceId('Microsoft.Storage/storageAccounts', variables('storage'))]"
    ],
    "resources": [

    ],
    "properties": {
        "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appname'))]",
        "siteConfig": {
            "appSettings": [
                {
                    "name": "AzureWebJobsDashboard",
                    "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storage'), ';AccountKey=', listKeys(variables('storageid'),'2015-05-01-preview').key1)]"
                },
                {
                    "name": "AzureWebJobsStorage",
                    "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storage'), ';AccountKey=', listKeys(variables('storageid'),'2015-05-01-preview').key1)]"
                },
                {
                    "name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
                    "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storage'), ';AccountKey=', listKeys(variables('storageid'),'2015-05-01-preview').key1)]"
                },
                {
                    "name": "WEBSITE_CONTENTSHARE",
                    "value": "[toLower(variables('appname'))]"
                },
                {
                    "name": "FUNCTIONS_EXTENSION_VERSION",
                    "value": "~1"
                },
                {
                    "name": "WEBSITE_NODE_DEFAULT_VERSION",
                    "value": "8.1.0"
                }
            ]
        }
    }
}

Linux 目前不支持函数应用程序,但我们计划在未来增加对它的支持。我们还没有要分享的预计到达时间,但它会发生的。