azure - 将 C# Teams 消息传递扩展 (Bot) 部署到 Azure 的其他步骤?

标签 azure botframework bots microsoft-teams

我已经使用了Bot Builder Teams messaging extension sample并使用 ngrok 在我的机器上成功本地调试了该项目。然后我继续关注Azure deployment instructions ,并成功将我的机器人项目部署到 Azure。

但是,我找不到有关需要在项目中更改哪些值才能现在使用 Azure 中的 Assets 的说明。我有enabled the Teams channel在已配置的机器人 channel 注册资源上,我尝试更新项目 list 文件中的 botId 值以匹配新配置的应用程序注册的值。但在 Teams 中旁加载应用程序时,我仍然收到“无法访问应用程序”消息。

是否有关于如何/更改项目内容的说明,以便它使用 Azure Assets 而不是我的本地 Assets ?

最佳答案

为了缩小问题范围,您是否尝试过 using the Web Chat to test the bot ?如果有效,则该机器人在 Azure 中工作正常,问题在于本地团队如何访问 Azure。

还要验证您是否正在使用 right AppID and Password .

验证机器人在 Azure 中运行后,在 this 底部页面上,您将看到获取 URL 的步骤,您可以粘贴该 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.

关于azure - 将 C# Teams 消息传递扩展 (Bot) 部署到 Azure 的其他步骤?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67011656/

相关文章:

powershell - 如何检测Azure Powershell session 是否已过期?

azure - 增加 Azure 数据资源管理器(ADX、Kusto)中摄取的最大文件大小

botframework - 单击确认对话框中的后退按钮后,如何返回到上一个用户对话?

python - 在 Python 中将数组格式化为字符串

ruby - heroku 上的 API 轮询机器人

JavaScript 类型错误 : Cannot read property 'startsWith' of undefined - discord bot

sql-server - 在 Azure 上添加新的链接服务时,为什么会收到错误 22300?

Angular 11 : Problem at Msal Angular V2 package

c# - 无法将类型 'Microsoft.BotBuilderSamples.AdapterWithErrorHandler' 的对象强制转换为类型 'Microsoft.Bot.Builder.BotFrameworkAdapter'

c# - 重新启动对话状态以测试主动消息