OfficeDev / microsoft-teams-faqplusplus-app

DEPRECATED - This repository contains a deprecated version of the FAQ Plus app template. Please see the README file for more details and a link to the new repository
MIT License
48 stars 50 forks source link

Usage in multiple tenants #96

Open Alexp2019 opened 4 years ago

Alexp2019 commented 4 years ago

Hi,

Looking to run the bot from a central tenant and then add to multiple tenants. I've just tested using the bot within a different tenant and receiving the following message/error with no response from the bot:

Is there any way to run the bot in multiple tenants?

Thanks

coderkrishna92 commented 4 years ago

Hi @Alexp2019 - thanks for your question! So you can actually do that by making sure of the following:

  1. When you are deploying multiple instances of this bot, at the time of ARM template deployment, you would want to populate the tenantId of the central tenant.
  2. Make sure that you also have the Azure AD app registrations done in the central tenant, and use those App IDs and App credentials from the central tenant

It is quite difficult to have a few tenants tied to one bot. It's a best practice for having one bot tied to 1 tenant

If you can attach any appropriate screenshots, it would help as well!