首页 > 解决方案 > 从 bot framework composer 重新部署 azure bot

问题描述

我使用 Microsoft bot 框架编写器构建了一个机器人,创建了资源并将其部署到 Azure。我现在在我的本地版本上对其进行了进一步改进,并尝试仅使用相同的过程重新部署它,跳过其中的 Create Azure Resource 部分,因为我只想将它部署到已经创建的资源中。这就是 Composer 的工作方式吗?我看不到任何有关使用 Composer 进行初始部署的信息。

当我尝试部署到 Azure 时,我得到以下信息:

C:\Users\User.Name\Documents\Composer\My-Bot>pwsh ./Scripts/deploy.ps1 -name OMG-AUS-HELPDESK -environment Production
The MSBuild project 'C:\Users\User.Name\Documents\Composer\My-Bot\BotProject.csproj' has already been initialized with a UserSecretsId.
0
Building models for environment [User.Name] targeting [westus] authoring region
Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

(A list of optional LUBUILD command line arguments)

lubuild succeeded
Getting Luis accounts...
Return invalid status code while gettings luis accounts: 401, error message: StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
{
  apim-request-id: (Anonymized)
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  X-Content-Type-Options: nosniff
  Date: Mon, 30 Mar 2020 02:16:13 GMT
  Content-Length: 161
  Content-Type: application/json
}

我检查了 appsettings.json 下的 LUIS authkey 和端点设置,它们看起来是正确的。

如果有人有任何见解,我将永远感激不尽。

提前谢谢你,

标签: azurebotframework

解决方案


推荐阅读