在此处使用ARM模板:https://raw.githubusercontent.com/elastic/azure-marketplace/7.6.0/src/mainTemplate.json
创建了通过terraform部署ARM模板的参数文件(仅限代码片段,实际参数更多):
{
"$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中找不到必需的属性'type‘。路径'parameters._artifactsLocation',第7行,位置5。“
我们需要在参数文件中指定属性"type“吗?
发布于 2020-04-16 23:43:26
不,解决这个问题:
"_artifactsLocation": {
"value": "https://raw.githubusercontent.com/elastic/azure-marketplace/7.6.0/src/"
},发布于 2020-04-18 06:42:57
已修复:
不需要以下参数:
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json##",
"contentVersion": "1.0.0.0",
"parameters": {删除它们后,不会再有模板验证失败。有些参数文件不需要这些头文件。
https://stackoverflow.com/questions/61254238
复制相似问题