【发布时间】:2020-07-29 22:17:02
【问题描述】:
从这里使用 ARM 模板:https://raw.githubusercontent.com/elastic/azure-marketplace/7.6.0/src/mainTemplate.json
为通过 terraform 部署 ARM 模板创建了一个参数文件(仅限 sn-p,实际参数更多):
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json##",
"contentVersion": "1.0.0.0",
"parameters": {
"_artifactsLocation": {
"value": "https://raw.githubusercontent.com/elastic/azure-marketplace/7.6.0/src/"
},
"_artifactsLocationSasToken": {
"value": ""
},
"esVersion": {
"value": "${esVersion}"
},
"esClusterName": {
"value": "${esClusterName}"
},
"loadBalancerType": {
"value": "external"
},
"loadBalancerInternalSku": {
"value": "Basic"
}
}
}
错误消息:模板验证失败:在 JSON 中找不到必需的属性“类型”。路径 'parameters._artifactsLocation',第 7 行,位置 5。”
我们需要在参数文件中指定属性“type”吗?
【问题讨论】:
标签: azure arm-template