Enterprise bot msbot 克隆服务命令挂起

Enterprise bot msbot clone services command hangs

我已经从 VS Enterprise 机器人模板创建了一个机器人。当我 运行 "msbot clone services" 命令时,它在创建 Azure 搜索服务后挂在脚本中间。没有明显的错误 运行ning --verbose 但脚本显然挂起并且只安装了 Azure 中的一半服务。

Azure 显示到目前为止所有步骤均成功。谁能建议如何获得比使用 --verbose 标志更多的日志记录信息?

D:\Dev\sobot181214\sobot181214    msbot clone services --name "sobot181214" --luisAuthoringKey "**REDACTED**" --folder "DeploymentScripts\en" --location "westus" --verbose
Checking az botservice version
az -v
checking dotnet requirement
dotnet --version
Fetching subscription account
az account show
The following services will be created by this operation:
 Service                                 Location            SKU                 Resource Group
 Azure App Site Plan                     westus              S1                  sobot181214
 Azure AppInsights Service               West US 2           F0                  sobot181214
Azure Blob Storage Service              westus              Standard_LRS        sobot181214
 Azure Bot Service Registration          Global                                  sobot181214
 Azure CosmosDB Service                  westus              1 write region      sobot181214
 Azure LUIS Cognitive Service            westus              S0                  sobot181214
 Azure LUIS Cognitive Service            westus              S0                  sobot181214
 (Dispatch)
 Azure QnA Maker Service                 westus              S0                  sobot181214
 Azure Search Service                    westus              Standard            sobot181214
 Azure WebApp Service (Bot)              westus                                  sobot181214
 Azure WebApp Service (QnA)              westus                                  sobot181214
Resources will be created in subscription: Pay-As-You-Go Dev/Test (**REDACTED**)
Would you like to perform this operation? [y/n]y
Creating Azure group [sobot181214]
az group create -g sobot181214 -l westus --subscription **REDACTED**
Creating Azure Bot Service [sobot181214]
az bot create -g sobot181214 --name sobot181214 --kind webapp --location westus --insights-location "West US 2" --subscription **REDACTED** --version v4 --    lang CSharp --verbose
[az bot] INFO: Microsoft application id not passed as a parameter. Provisioning a new Microsoft application.
 (Please be patient, this may take several minutes)
[az bot] To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code xxxxxxx to authenticate.

Fetching bot extended information [sobot181214]
az bot show -g sobot181214 -n sobot181214 --subscription **REDACTED**
Fetching co-created resources [sobot181214]
az resource list -g sobot181214 --subscription **REDACTED**
Fetching bot website appsettings [sobot181214]
az webapp config appsettings list -g sobot181214 -n sobot1812141nay --subscription **REDACTED**
Creating LUIS Cognitive Service [sobot181214-LUIS]
az cognitiveservices account create -g sobot181214 --kind LUIS -n "sobot181214-LUIS" --location westus --sku S0 --yes --subscription **REDACTED**
Fetching LUIS Keys [sobot181214-LUIS]
az cognitiveservices account keys list -g sobot181214 -n "sobot181214-LUIS" --subscription **REDACTED**
Creating site plan [sobot181214]
az appservice plan create -g  sobot181214 --sku s1 --name sobot181214 --subscription **REDACTED**
Creating Azure Search Service [sobot181214-search]
az search service create -g sobot181214 -n "sobot181214-search" --location westus --sku standard --subscription **REDACTED**

根据您提供的代码片段和输出日志,我看到它成功执行了各种命令(即创建组、创建机器人、显示机器人、列出资源、列出 webapp 配置应用程序设置、创建 cognitiveservices 帐户,列出认知服务帐户密钥,分别创建应用程序服务计划),直到到达创建搜索服务的步骤。但我认为在创建应用程序服务计划步骤甚至创建机器人步骤时存在一些问题。因此,为了更好地理解这个问题,如果您有一个名为“sobot181214”的应用程序服务计划仍然可用并且名为“sobot181214”的 bot webapp 仍然可用,那么您可以检查它们是否正确创建或者它们是否处于某种损坏或不稳定状态?

此外,捕获点也是如此(https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-enterprise-template-deployment?view=azure-bot-service-4.0) link, it states that some users might experience issues if ‘--appId’ argument is not provided while running the command ‘msbot clone services’. So can you browse to https://apps.dev.microsoft.com 并手动创建一个新的应用程序来检索 ApplicationID 和 Password/Secret。然后 运行 'msbot clone services' 命令使用参数 '--appId' 和 --appSecret' 传递您刚刚检索的值并让我知道结果。还要确保用引号括起秘密以防止解析问题,例如:--appSecret "YOUR_SECRET".

另一方面,如果您有兴趣详细调试当前问题,您可以尝试更新脚本 'C:\Users\USERNAME\AppData\Roaming\npm\node_modules\msbot\bin\msbot-clone-services.js' 中的所有 'az' 命令以“--debug”参数结尾,这会增加日志记录的详细程度,以在执行“msbot clone services”命令时显示所有调试日志。但在某些情况下,更新“msbot-clone-services.js”文件会损坏 msbot 相关包。万一发生这种情况,您可以按照本文中的说明 运行 执行命令 'npm install -g ludown luis-apis qnamaker botdispatch msbot chatdown' 卸载并重新安装 msbot 和相关软件包(https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-enterprise-template-deployment?view=azure-bot-service-4.0 ) link.

希望对您有所帮助!!