microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
211 stars 236 forks source link

Why Echo bot needs two apps? #778

Closed jade0520 closed 4 weeks ago

jade0520 commented 1 month ago

I'm currently working on building an Echobot following the instructions (https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/PublicSamples/EchoBot).

According to the instructions, "Bot Registration" step should be completed before deploying. However, after deploying I noticed another app called "GHEchobot_BOT". What is different between these two bots? and which one should I use when the deploying script asks for "Azure Bot ADD Client ID"?**

Initially, I entered the information for the app I manually created during the "Bot Registration" step. But when I ran 'Action' following an error occurred, and I suspect the issue might be due to using the wrong app. image

InDieTasten commented 1 month ago

I'm not familiar with the Echobot deployment scripts, but I suspect the following:

One app registration is used as identity for the bot to communicate with Graph and to perform it's actions during operation.

The other app registration serves as service principal to deploy infrastructure and code changes to Azure. It needs to have permissions to perform those tasks.

It's common to split those two aspects.

jade0520 commented 4 weeks ago

Thank you for explanation! I put an app registration one when I deploy and it worked smoothly!