简体   繁体   English

使用Azure或App Studio将Bot部署到MS Teams?

[英]Deploy Bot to MS Teams using Azure or App Studio?

I'm having really annoying problems getting my bot to work in MS Teams. 让我的机器人在MS Teams中工作时,我遇到了非常烦人的问题。 I created it using Bot Framework v4 and deployed it to Azure. 我使用Bot Framework v4创建了它,并将其部署到了Azure。 I deployed the bot using Direct Line from the "channels" blade and it's working ok. 我使用“渠道”刀片中的Direct Line部署了该机器人,一切正常。 Then in the same blade I deployed it to MS Teams. 然后,在同一刀片中,将其部署到MS Teams。 And that caused issues . 引起了问题

People are telling me that the problem has to do with something about a manifest file and a "valid domains" setting I have to edit. 人们告诉我,问题与清单文件和必须编辑的“有效域”设置有关。 I don't know what those are and I never had to do any of this when I told Azure to deploy it to MS Teams. 我不知道这些是什么,当我告诉Azure将其部署到MS Teams时,我从不需要做任何事情。 It seems there's a whole different way to deploy the bot to teams, which is using App studio. 似乎有一种完全不同的方式将Bot部署到团队中,即使用App Studio。 I tried that way, and now I see another different issue. 我尝试过这种方式,现在又看到了另一个不同的问题。

So it doesn't work for me when I deploy with Azure or using App Studio. 因此,当我使用Azure或使用App Studio进行部署时,它对我不起作用。 And I want to research and fix the issues, but first I need to know which method should I try to fix? 我想研究和解决问题,但是首先我需要知道应该尝试哪种方法? Which am I supposed to use to deploy to MS Teams? 我应该使用哪个来部署到MS Teams? Azure or App Studio? Azure还是App Studio?

Note: I'm not asking how to fix these issues. 注意:我不是在问如何解决这些问题。 I want to know which method of deployment I am supposed to use. 我想知道应该使用哪种部署方法。 What's the difference? 有什么不同?

Let's get the terminology straight first. 首先让我们弄清楚术语。 You are building a bot. 您正在构建一个机器人。 In Teams, a bot is just one of the possible capabilities of a Teams app. 在Teams中,机器人只是Teams应用程序可能的功能之一。 (The others are tabs, connectors, and messaging extensions.) (其他是选项卡,连接器和消息传递扩展。)

The definition of a Teams app is defined at a high level here . Teams应用程序的定义在此处得到了较高的定义。

Creating an app package (which is one of the things App Studio can do) is defined here - App Studio can also sideload/upload apps (see below). 此处定义创建应用程序包(这是App Studio可以做的事情之一)-App Studio还可以旁载/上传应用程序(请参见下文)。

Once you've created it, you need to make it available within Teams, first for yourself (and potentially others, if it's allowed in your tenant) via sideloading/uploading, or for your entire organization if you like. 创建它之后,您需要使其在团队中可用,首先要通过侧向加载/上载(对于您自己,以及在租户允许的情况下,可能是其他人)通过侧面加载/上传,或者在整个组织中使用(如果您愿意)。 That's defined in Upload an app package , with in-depth discussion of the tenant app catalog here . 这是在上传应用程序包中定义的,在此处详细讨论了承租人应用程序目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM