[英]Link MS Teams Bot to Azure AD app when creating chatbot in app studio
In the organization where I am trying to deploy a chatbot in MS Teams, because of security posture and separation of responsibilities, the MS Teams' admin team (different from bot developers), cannot create a new Azure AD app when creating a bot in App Studio.在我尝试在 MS Teams 中部署聊天机器人的组织中,由于安全状况和职责分离,MS Teams 的管理团队(不同于机器人开发人员)无法在 App 中创建机器人时创建新的 Azure AD 应用程序工作室。 The authorization to create Azure AD app is only with AAD team.
创建 Azure AD 应用程序的授权仅与 AAD 团队有关。
To work with this process, we requested and got an application created in AAD via AAD Team.为了处理这个过程,我们通过 AAD Team 请求并获得了在 AAD 中创建的应用程序。 After creation of AAD app, the AAD team also gave us application name, application id and object id;
创建 AAD 应用程序后,AAD 团队还为我们提供了应用程序名称、应用程序 ID 和 object id; Now, the MS Teams' admin team is asking for process/documentation to link chatbot to be created in app studio to AAD app.
现在,MS Teams 的管理团队要求提供流程/文档,以将在 App Studio 中创建的聊天机器人链接到 AAD 应用程序。 Can someone share these instructions or point to any existing ones?
有人可以分享这些说明或指向任何现有说明吗? (I couldn't find any in my searches).
(我在搜索中找不到任何内容)。
The short answer is that this needs to go into the "botId" section in the Teams app manifest (see here for refence: https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema ).简短的回答是,这需要将 go 放入 Teams 应用程序清单中的“botId”部分(参考此处: https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-模式)。 Longer answers:
更长的答案:
You might not be editing a manifest directly - you are doing it in App Studio, so just go to the Bot section and that's where you capture the Bot ID您可能不会直接编辑清单 - 您是在 App Studio 中进行的,因此只需将 go 添加到 Bot 部分,这就是您捕获 Bot ID 的地方
It sounds like there is a missing piece in what you are trying to do.听起来您正在尝试做的事情中缺少了一部分。 You need:
你需要:
a.一种。 an Azure Application (got)
一个 Azure 申请(得到)
b. b. a Teams app where you can capture the Azure App ID as bot id (got)
一个 Teams 应用程序,您可以在其中捕获 Azure 应用程序 ID 作为 bot id (got)
c. a 'Bot' registration in Azure (it's a kind of Azure resource) - have you got this already? c。Azure 中的“Bot”注册(这是一种 Azure 资源)- 你已经得到这个了吗? If not, someone with Azure access will need to create it.
如果没有,则需要拥有 Azure 访问权限的人来创建它。
There is a section in the wizard to use an existing Azure Application - you'd need to select that and enter the Azure application id.向导中有一个部分使用现有的 Azure 应用程序 - 您需要 select 并输入 Azure 应用程序 ID。
Here's more info on doing the bot registration: https://learn.microsoft.com/en-us/azure/bot-service/abs-quickstart?view=azure-bot-service-4.0&tabs=userassigned .以下是有关机器人注册的更多信息: https://learn.microsoft.com/en-us/azure/bot-service/abs-quickstart?view=azure-bot-service-4.0&tabs=userassigned 。 For the screenshot in section 6, I recommend choosing "Multi-tenant" as the app type (then you can skip the 'Bot identity information' section later), and for 'Creation Type' is where you want to link to the already-created Azure Application.
对于第 6 部分的屏幕截图,我建议选择“多租户”作为应用程序类型(然后您可以稍后跳过“Bot 身份信息”部分),对于“创建类型”,您要链接到已经-创建了 Azure 应用程序。
Also note the "pricing tier" - by default it's on "standard", but you can change to the "free" tier to see if that's sufficient for you - your bot needs to be handling a lot of message to need to move up to the paid tier.另请注意“定价层”——默认情况下它处于“标准”,但你可以更改为“免费”层以查看这是否对你足够——你的机器人需要处理大量消息才能升级到付费层。
What I did end up doing was:我最终做的是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.