azure - 从 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 和端点设置,它们看起来是正确的。
如果有人有任何见解,我将永远感激不尽。
提前谢谢你,
解决方案
推荐阅读
- c# - 将 TemplateField 转换为 DateTime - 空白行
- amazon-web-services - DynamoDB 索引协助和获取我的数据
- python - 使用 Google Cloud Vision 读取多页 PDF 文件
- node.js - 一本护照中的 Nodejs 本地和 SSO
- pandas - 添加一列,说明一条记录是否跨数据集出现
- java - 从 JanusGraph 中检索 indexOnly
- python - 在 PyCaret 时间序列中创建 12 个月 MA 会给出一个具有 NA 值的列
- vba - MS Access #Name?动态设置控制源的文本框错误
- javascript - 数组未从 Python Eel 传递到 Javascript
- elasticsearch - 如何在 Elasticsearch 中查询属性具有值的记录?