Azure 企业bot msbot克隆服务命令挂起

Azure 企业bot msbot克隆服务命令挂起,azure,botframework,azure-cli,azure-deployment,Azure,Botframework,Azure Cli,Azure Deployment,我已经从VS Enterprise bot模板创建了一个bot。当我运行“MSBOT克隆服务”命令时,它在创建Azure搜索服务后挂在脚本的中间。运行时没有明显的错误——冗长,但脚本明显挂起,只在Azure中安装了一半的服务 Azure显示了迄今为止所有成功的步骤。有人能建议如何获得比使用--verbose标志更多的日志信息吗 D:\Dev\sobot181214\sobot181214 msbot clone services --name "sobot181214" --luisAut

我已经从VS Enterprise bot模板创建了一个bot。当我运行“MSBOT克隆服务”命令时,它在创建Azure搜索服务后挂在脚本的中间。运行时没有明显的错误——冗长,但脚本明显挂起,只在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**

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

此外,捕获点与此()链接相同,它指出,如果在运行命令“msbot clone services”时未提供“--appId”参数,则某些用户可能会遇到问题。因此,您可以浏览并手动创建一个新的应用程序,检索ApplicationID和密码/密码。然后运行“msbot clone services”命令以及参数“--appId”和--appSecret”,传递刚检索到的值,并告知结果。还要确保用引号将机密包装起来以防止解析问题,例如:--appSecret“YOUR_secret”

另一方面,如果您有兴趣详细调试当前问题,您可以尝试更新脚本“C:\Users\USERNAME\AppData\Roaming\npm\node\u modules\msbot\bin\msbot clone services.js”中的所有“az”命令,该脚本在结尾追加“-debug”参数,这将增加日志详细程度,以便在执行“msbot clone services”命令时显示所有调试日志。但在某些情况下,更新“msbot clone services.js”文件会损坏与msbot相关的包。如果发生这种情况,则可以按照()链接中的说明,通过运行命令“npm install-g ludown luis api qnamaker botdispatch msbot chatton”卸载并重新安装msbot和相关软件包


希望这有帮助

谢谢,这很有帮助。我再也没有那个机器人了。我们确实设法让它工作,但没有通过我们所做的任何事情。说它刚刚开始工作是很不令人满意的。然而,在不久的将来,我们将再次围绕部署展开讨论。