【问题标题】: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 还是其他类型。

【讨论】:

    猜你喜欢
    • 2022-08-16
    • 2018-03-08
    • 1970-01-01
    • 1970-01-01
    • 2021-12-09
    • 1970-01-01
    • 1970-01-01
    • 2015-09-17
    • 2021-07-22
    相关资源
    最近更新 更多