我正在为Azure中的QnAMaker资源类型创建ARM模板。在创建QnAMaker资源并导出模板之后,它创建了许多资源:
"PrimaryEndpointKey": "[concat(parameters('appName'), '-PrimaryEndpointKey')]" )ARM模板在"/sites“资源中有一个硬编码值,而不是从另一个资源中获取它。
在输出中,有一个指向qna运行时的链接:
"qnaRuntimeEndpoint": {
"type": "String",
"value": "[concat('https://',reference(resourceId('Microsoft.Web/sites', parameters('appName'))).hostNames[0])]"
}用于检索QnAMaker资源的订阅键的输出值应该是什么?
发布于 2020-08-24 15:44:04
它使用与认知服务相关的功能。看看我找到的其他例子..。
"outputs": {
"qnaKey":{
"type": "string",
"value": "[listKeys(concat(resourceGroup().id,'/providers/','Microsoft.CognitiveServices/accounts/', parameters('name')),'2016-02-01-preview').key1]"
}
}https://stackoverflow.com/questions/63563408
复制相似问题