[英]Is there any way to completely automate QnAMaker based Azure Bot with ARM template
[英]ARM Template for QnAmaker to output subscription key
我正在為 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 資源的訂閱密鑰的輸出值應該是多少?
這使用與認知服務相關的功能。 看看我得到的其他一些例子......
"outputs": {
"qnaKey":{
"type": "string",
"value": "[listKeys(concat(resourceGroup().id,'/providers/','Microsoft.CognitiveServices/accounts/', parameters('name')),'2016-02-01-preview').key1]"
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.