azure app 服务计划 terraform 配置中的保留参数是什么

What is the reserved argument in azure app service plan terraform config

在为 App Service Plan 编写配置时,我遇到了 terraform documentation

中的参数 reserved

reserved - (Optional) Is this App Service Plan Reserved. Defaults to false.

我不确定这个 reserved 参数如果设置为 true 会做什么,除了有一条注释说明必须为 Linux 计划将其设置为 true .

Azure documentation 中也找不到 属性。我在通过门户创建计划时也没有看到 属性。

对于您的问题,正如节点向您显示必须将 Linux 计划设置为 true 一样。 Here is a question in the Azure document for Linux service plan, it says if you want to create a Linux service plan, just set the reserved field to true. And there is also an issue 在 Github 中显示为:

If you set "kind": "linux" but without setting "reserved": true, it deploys a Windows service plan with a Linux icon!

所以正如description在REST API中显示的那样,保留字段决定了服务计划是Linux还是其他类型。