Microsoft Virtual Assistant模板部署失败

时间:2019-08-07 15:29:35

标签: botframework

我正在尝试部署Microsoft的botframework虚拟助手模板解决方案,但是在运行deploy.ps1 PowerShell脚本时遇到了许多错误。如下面的脚本输出所示,该错误源于deploy.ps1脚本调用的其他PowerShell脚本。有人以前看过这个并成功解决了吗?

PS C:\ source \ repos \ stuartbottest1 \ stuartbottest1>。\ deployment \ scripts \ deploy.ps1 ? Bot名称(用作资源组和已部署资源的默认名称):stuartbottest1 ? Azure资源组区域:eastus2 ? MSA应用程序注册的密码(必须至少16个字符长,至少包含1个特殊字符,以及至少1个数字字符):Chicrbwisf @ stuartbottest1 ? LUIS创作区域(westus,westeurope或澳大利亚东部):westus ? LUIS创作密钥(位于https://luis.ai/user/settings):lasdfljwrlkkjxoiuc

  

创建资源组...   验证Azure部署...   部署Azure服务(这可能需要一段时间)...   正在更新appsettings.json ...   部署认知模型...   初始化调度模型...   dispatch:术语“ dispatch”不被识别为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ deploy_cognitive_models.ps1:125 char:4   +(调度初始化 + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (dispatch:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException > Parsing General LU file ... ludown : The term 'ludown' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\luis_functions.ps1:10 char:5 + ludown parse toluis   + ~~~~~~ + CategoryInfo:ObjectNotFound:(ludown:String)[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException>部署通用LUIS应用...   luis:术语“ luis”不被视为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ luis_functions.ps1:18 char:17   + $ luisApp =(luis导入应用程序 + ~~~~ + CategoryInfo : ObjectNotFound: (luis:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException ! Could not deploy LUIS model. Review the log for more information. ! Log: C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\..\deploy_cognitive_models_log.txt Setting LUIS subscription key ... ! Could not create LUIS app. Skipping dispatch add. Parsing Chitchat LU file ... ludown : The term 'ludown' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\qna_functions.ps1:9 char:5 + ludown parse toqna + ~~~~~~ + CategoryInfo:ObjectNotFound:(ludown:String)[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException

     

部署Chitchat QnA kb ...   qnamaker:术语'qnamaker'不被视为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ qna_functions.ps1:24 char:13   + $ qnaKb =(qnamaker创建kb + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (qnamaker:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
2 Retrying ... qnamaker : The term 'qnamaker' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\qna_functions.ps1:24 char:13 + $qnaKb = (qnamaker create kb
  + ~~~~~~~~~   + CategoryInfo:ObjectNotFound:(qnamaker:String)[],CommandNotFoundException   + FullyQualifiedErrorId:CommandNotFoundException                                                                                                                           1>重试... qnamaker:术语'qnamaker'不被识别为cmdlet,函数,脚本文件或可运行程序的名称。检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ qna_functions.ps1:24 char:13   + $ qnaKb =(qnamaker创建kb + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (qnamaker:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 0 > Retrying ... qnamaker : The term 'qnamaker' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\qna_functions.ps1:24 char:13 + $qnaKb = (qnamaker create kb   + ~~~~~~~~~   + CategoryInfo:ObjectNotFound:(qnamaker:String)[],CommandNotFoundException   + FullyQualifiedErrorId:CommandNotFoundException -1!无法创建QnA KB。 !无法部署知识库。查看日志以获取更多信息。   !日志:C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts .. \ deploy_cognitive_models_log.txt   !无法创建知识库。跳过调度添加。   解析常见问题LU文件...   ludown:术语“ ludown”不被视为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ qna_functions.ps1:9 char:5 + ludown解析toqna`+ ~~~~~~ + CategoryInfo:ObjectNotFound:(ludown:String)[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException

     

部署常见QnA kb ...   qnamaker:术语'qnamaker'不被视为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ qna_functions.ps1:24 char:13   + $ qnaKb =(qnamaker创建kb + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (qnamaker:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
2 Retrying ... qnamaker : The term 'qnamaker' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\qna_functions.ps1:24 char:13 + $qnaKb = (qnamaker create kb
  + ~~~~~~~~~   + CategoryInfo:ObjectNotFound:(qnamaker:String)[],CommandNotFoundException   + FullyQualifiedErrorId:CommandNotFoundException                                                                                                                           1>重试... qnamaker:术语'qnamaker'不被识别为cmdlet,函数,脚本文件或可运行程序的名称。检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ qna_functions.ps1:24 char:13   + $ qnaKb =(qnamaker创建kb + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (qnamaker:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 0 > Retrying ... qnamaker : The term 'qnamaker' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\source\repos\stuartbottest1\stuartbottest1\deployment\scripts\qna_functions.ps1:24 char:13 + $qnaKb = (qnamaker create kb   + ~~~~~~~~~   + CategoryInfo:ObjectNotFound:(qnamaker:String)[],CommandNotFoundException   + FullyQualifiedErrorId:CommandNotFoundException

-1 !无法创建QnA KB。 !无法部署知识库。查看日志以获取更多信息。 !日志:C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts .. \ deploy_cognitive_models_log.txt !无法创建知识库。跳过调度添加。

  

创建调度模型...   dispatch:术语“ dispatch”不被识别为cmdlet,函数,脚本文件或可运行程序的名称。   检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。   在C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts \ deploy_cognitive_models.ps1:251 char:16   + $ dispatch =(调度创建`   + ~~~~~~~~~   + CategoryInfo:ObjectNotFound :(调度:字符串)[],CommandNotFoundException   + FullyQualifiedErrorId:CommandNotFoundException

!无法创建调度应用。查看日志以获取更多信息。 !日志:C:\ source \ repos \ stuartbottest1 \ stuartbottest1 \ deployment \ scripts .. \ deploy_cognitive_models_log.txt

  

发布到Azure ...   做完了   PS C:\ source \ repos \ stuartbottest1 \ stuartbottest1>

1 个答案:

答案 0 :(得分:0)

除了重复几次所有pre-req安装步骤外,没有真正的“解决方案”。