如何将 MS Teams 连接到部署在 Azure Bot Service deployment "Development" Slot 中的聊天机器人,即不是 Production/Default Slot

How to Connect MS Teams to Chat Bot Deployed in Azure Bot Service deployment "Development" Slot i.e. NOT the Production/Default Slot

已创建 开发槽 以在开发过程中部署我的机器人和单元测试,而 Production/default 插槽包含用于测试实时聊天机器人的二进制文件。

需要输入

As the ChatBot in Development slot and Production/default slot both point to the same MicrosoftAppId how can I test the ChatBot Binaries in the Development slot in MS Teams as, the MicrosoftAppId is the only reference which the MS Teams Manifest requires to connect to the Chatbot which is obviously same for both slots.

我还没有完全这个设置,但我很确定下面的设置会起作用:

  1. 在 Azure 中创建一个新的 Bot Channels Registration - 这是 Azure 中的一个资源,可让您控制机器人,但它完全与托管无关 - 它只是一个 "registration"(Azure 中的另一个选项,"Azure Web Bot",是您现在使用的,它提供了一个 Bot 频道注册 AND 一个 Azure Web 应用程序组合在一起。
  2. 将您的 AppId 和 AppPassword 更改为部署槽配置设置。将您当前的产品用于 Prod
  3. 对于 Dev 部署槽配置设置,请使用在您之前创建的 Bot Channels Registration 中为您生成的 App Id 和 App Password。
  4. 在您的机器人频道注册中的 "Settings" 下,从您的生产版本复制地址,但更改第一部分以匹配您的开发槽地址(确保“/api/messages”是还在。