1
votes

I'm trying to understand the difference between a bot service registration & application registration in Azure.

I'd assumed that a bot registration was all that was required (to get the app id & secret) to test out a bot, but then came across the following guide for setting up a teams app that used a bot which instructs you to also create an application registration that's linked to the bot registration.

What is the application registration for? If you're developing a consumer / skill bot setup do you need an application registration for all the bots or just the skill consumer?

Thanks in advance.

2

2 Answers

2
votes

So technically you require both, but you're correct that doing a normal bot registration in the Azure portal (I say normal because there are other ways than the portal, for instance, like ARM templates, etc.) will create an App Registration as well. You need to go to the app registration to get your app password (also called app secret).

You can choose to go another route, like creating an app registration first, and then using that when you create your bot, and there are reasons why you might like to do that, but if you don't have a specific reason, just go the normal route.

Incidentally, be aware of the difference when creating your bot between a "Bot Channels" registration and a "Web App Bot" - both will give you a bot registered with the Bot serviced, but the "Web App" bot also includes an Azure "Web app" that you can use to host your bot (whereas Bot Channels gives you more freedom in how you want to host your bot, for instance as an Azure Function or even outside of Azure altogether).

1
votes

Bot service registration refers to registering a bot with the Azure Bot Service (as your bot does not have to be hosted on Azure).

App registration refers your bot security configuration. You set this up when you click on to the "App ID and password" field during setup.

There is some other Azure Bot Service documentation which goes into this in more detail: