【问题标题】:What is the reserved argument in azure app service plan terraform configazure app service plan terraform config中的保留参数是什么
【发布时间】:2020-05-11 02:23:12
【问题描述】:
在为应用服务计划编写配置时,我在terraform documentation
中遇到了参数
reserved
reserved -(可选)此应用服务计划是否已保留。默认为 false。
我不确定这个 reserved 参数如果设置为 true 会做什么,但有一条说明说明它必须为 Linux 计划设置为 true。
在Azure documentation 中也找不到该属性。此外,在通过门户创建计划时,我没有看到该属性。
【问题讨论】:
标签:
azure-app-service-plans
terraform-provider-azure
【解决方案1】:
对于您的问题,正如节点向您显示的那样,对于 Linux 计划,它必须设置为 true。 Here 是 Azure 文档 for Linux service plan 中的一个问题,它说如果要创建 Linux 服务计划,只需将 reserved 字段设置为 true。而且Github里还有一个issue,它显示了这个:
如果你设置了 "kind": "linux" 但没有设置 "reserved": true,它
部署带有 Linux 图标的 Windows 服务计划!
正如description 显示在 REST API 中一样,保留字段决定服务计划是 Linux 还是其他类型。