对象缺少必需的属性:qnaRuntimeEndpoint

Required properties are missing from object: qnaRuntimeEndpoint

我无法通过 ARM 模板部署 QnA maker

遵循我的模板

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "accounts_MyBot_QnAMaker_name": {
            "defaultValue": "MyBot-QnAMaker",
            "type": "String"
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.CognitiveServices/accounts",
            "apiVersion": "2016-02-01-preview",
            "name": "[parameters('accounts_MyBot_QnAMaker_name')]",
            "location": "westus",
            "sku": {
                "name": "S0"
            },
            "kind": "QnAMaker",
            "properties": {}
        }
    ]
}

这是我收到的状态错误消息

"statusMessage": {
            "error": {
                "code": "ApiPropertiesInvalid",
                "message": "The given 'apiProperties' '{}' is invalid. Validation errors: Required properties are missing from object: qnaRuntimeEndpoint. Path ''."
            }
        },

https://github.com/Azure/azure-cli/issues/6888#issuecomment-417817480

你应该这样得到模板。

创建新的 QnA Maker 时在 Azure 门户上填写表格(不要单击创建按钮),然后单击自动化选项。

然后您将获得模板和参数。我用这种方式创建了一个新的。