简体   繁体   English

在应用工作室中创建聊天机器人时,将 MS Teams Bot 链接到 Azure AD 应用

[英]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:更长的答案:

  1. 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 的地方

  2. 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:我最终做的是:

  1. Create an app registration in azure with a secret.使用密钥在 azure 中创建一个应用程序注册。 The secret becomes bot password in teams.秘密成为团队中的机器人密码。
  2. Create a bot using https://dev.botframework.com/bots .使用https://dev.botframework.com/bots创建一个机器人。 Since my app/bot is single tenant, I needed to be able to create a bot without azure service which requires subscription.由于我的应用程序/机器人是单租户,我需要能够创建一个没有需要订阅的 azure 服务的机器人。 I enabled Teams for this bot, besides web chat which is enabled by default.除了默认启用的 web 聊天之外,我还为此机器人启用了 Teams。
  3. Create an app using app studio, referencing the azure app and bot from botframework.使用 app studio 创建一个应用程序,引用 azure 应用程序和来自 botframework 的机器人。

暂无
暂无

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

相关问题 带有 Azure AD 身份验证的 SaaS 应用程序作为带有 App Studio 的 MS Teams 应用程序 - SaaS Application with Azure AD authentication as MS Teams App with App Studio Azure AD B2C 和 MS Teams 应用(机器人 + 选项卡)身份验证 - Azure AD B2C and MS Teams app (bot + tab) auth 为什么 go 在 MS Teams Bot 应用程序中无法通过身份验证? - Why does authentication not go through in MS Teams Bot app? Azure AD 与机器人框架/团队的集成 - Azure AD integration with Bot Framework / teams 如何针对Azure AD对MS Teams用户进行身份验证 - How to Authenticate MS Teams User Against Azure AD Azure AD 或 Teams Provisioning 中的哪些字段是传递到 Teams App 消息传递端点的 JSON 中entities.country/locale 信息的来源? - What fields in Azure AD or Teams Provisioning are the source of entities.country/locale info in the JSON delivered to Teams App messaging endpoint? Azure AD 多租户应用,当新客户订阅服务时,谁应该负责创建租户? - Azure AD multi-tenant app, Who should be responsible of creating a tenant when a new customer subscribe to the service? Azure AD中的应用程序注册 - App Registrations in Azure AD 如何使用身份服务器 3 和 Microsoft 团队应用程序使用 Azure AD 令牌进行身份验证 - How to authenticate using Azure AD token using identity server 3 and microsoft teams app 用于注册应用程序和创建组的应用程序授权-Azure AD - Application Authorization for Registering App and Creating Groups - Azure AD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM