请您参考如下方法:
如果要创建新的 Linux 使用计划,请将 Microsoft.Web/serverfarms
的 reserved 属性设置为 true(请参阅 FAQ):
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2016-09-01",
"name": "[parameters('serverfarms_NorthEuropeLinuxDynamicPlan_name')]",
"location": "North Europe",
"sku": {
"name": "Y1",
"tier": "Dynamic",
"size": "Y1",
"family": "Y",
"capacity": 0
},
"kind": "functionapp",
"properties": {
"name": "[parameters('serverfarms_NorthEuropeLinuxDynamicPlan_name')]",
"reserved": true
}
},
如果您希望将 Function App 部署到内置 Linux 使用计划,请为 Microsoft.Web/sites
设置 kind 属性:
"kind": "functionapp,linux"