gpt4 book ai didi

azure - 参数文件: Template validation failed: Required property 'type' not found in JSON

转载 作者:行者123 更新时间:2023-12-03 04:03:13 28 4
gpt4 key购买 nike

使用此处的 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 中找不到必需的属性“类型”。路径“parameters._artifactsLocation”,第 7 行,位置 5。”

我们需要在参数文件中指定属性“type”吗?

最佳答案

不,解决这个问题:

"_artifactsLocation": {
"value": "https://raw.githubusercontent.com/elastic/azure-marketplace/7.6.0/src/"
},

关于azure - 参数文件: Template validation failed: Required property 'type' not found in JSON,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61254238/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com