将 C# Teams 消息传递扩展 (Bot) 部署到 Azure 的其他步骤?
Additional Steps to Deploy C# Teams Messaging Extension (Bot) to Azure?
我已经使用 Bot Builder Teams messaging extension sample and successfully debugged the project locally on my machine using ngrok. I then proceeded to follow the Azure deployment instructions,并成功将我的机器人项目部署到 Azure。
但是,我找不到有关需要在我的项目中更改哪些值才能现在使用 Azure 中的资产的说明。我在配置的 Bot Channel Registration 资源上有 enabled the Teams channel,我尝试更新项目清单文件中的 botId 值以匹配新配置的应用程序注册的值。但是在 Teams 中旁加载应用程序时,我仍然收到 'unable to reach app' 消息。
是否有关于 how/what 在项目内进行更改以使其使用 Azure 资产而不是我本地资产的说明?
为了缩小错误范围,您试过 using the Web Chat to test the bot 了吗?如果这有效,则该机器人在 Azure 中运行良好,问题是本地团队无法访问 Azure。
同时确认您使用的是 right AppID and Password。
验证该机器人在 Azure 中正常工作后,在 this 页面底部,您将看到获取 url 的步骤,您可以粘贴它以将机器人添加到您本地的 MS Teams 实例。 (在下面引用以便快速访问)
Copy the https part of the code that is shown in the Get bot embed code dialog. For example,
https://teams.microsoft.com/l/chat/0/0?users=28:b8a22302e-9303-4e54-b348-343232.
In the browser, paste this address and then choose the Microsoft Teams app (client or web) that you use to add the bot to Teams. You
should be able to see the bot listed as a contact that you can send
messages to and receives messages from in Microsoft Teams.
我终于让我的机器人工作了,但在部署文档中发现了几个缺失的步骤。我已在与相关文档文章关联的 GitHub issue 中报告了它们。
我已经使用 Bot Builder Teams messaging extension sample and successfully debugged the project locally on my machine using ngrok. I then proceeded to follow the Azure deployment instructions,并成功将我的机器人项目部署到 Azure。
但是,我找不到有关需要在我的项目中更改哪些值才能现在使用 Azure 中的资产的说明。我在配置的 Bot Channel Registration 资源上有 enabled the Teams channel,我尝试更新项目清单文件中的 botId 值以匹配新配置的应用程序注册的值。但是在 Teams 中旁加载应用程序时,我仍然收到 'unable to reach app' 消息。
是否有关于 how/what 在项目内进行更改以使其使用 Azure 资产而不是我本地资产的说明?
为了缩小错误范围,您试过 using the Web Chat to test the bot 了吗?如果这有效,则该机器人在 Azure 中运行良好,问题是本地团队无法访问 Azure。
同时确认您使用的是 right AppID and Password。
验证该机器人在 Azure 中正常工作后,在 this 页面底部,您将看到获取 url 的步骤,您可以粘贴它以将机器人添加到您本地的 MS Teams 实例。 (在下面引用以便快速访问)
Copy the https part of the code that is shown in the Get bot embed code dialog. For example,
https://teams.microsoft.com/l/chat/0/0?users=28:b8a22302e-9303-4e54-b348-343232.In the browser, paste this address and then choose the Microsoft Teams app (client or web) that you use to add the bot to Teams. You
should be able to see the bot listed as a contact that you can send
messages to and receives messages from in Microsoft Teams.
我终于让我的机器人工作了,但在部署文档中发现了几个缺失的步骤。我已在与相关文档文章关联的 GitHub issue 中报告了它们。