Forum Discussion
Multi-Tenant App with dynamic configuration from Azure App Configuration
vtyagunov -Here is sample for refence-Microsoft Teams 'Todo List' sample tab app - Code Samples | Microsoft Docs
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-auth/nodejs
Hi, Sayali-MSFT !
Thank you again for the above resources and samples, We reviewed them and unfortunately, those are not really about the things we asked.
We are aware on the how to configure the Azure App and how to setup authentication in MS Teams app.
What we asked is how to access organization's Azure App Configuration on behalf of signed-in user in a multi-tenant app.
Let's say, we own Tenant A and we registered the Azure App under Tenant A.
We distributed the app (manifest file) to other tenants / customers. (Tenant B, Tenant C and etc)
We also enabled Azure App Configuration and saved a json for a specific key.
We want to use it only for users from our tenant.
Users from other tenant has to receive a different json, a json for the same key, but from their Azure App Configuration service.
The desired behavior is -
1. When an Tenant B user signs in - the app has to get the key-value pair from Azure App Configuration in Tenant B.
2. When an Tenant C user signs in - the app has to get the key-value pair from Azure App Configuration in Tenant C.
3. And so on...
By any chance, can you confirm if this is possible?
Thanks!
- Sayali-MSFTMay 04, 2022
Microsoft
vtyagunov - Yes it's possible.
Once you get the azure App Id ,Tenant Id on azure portal ,you can configure it in json and your app setting.