Elliott B
Elliott B

Reputation: 1199

What's the difference between app and bot channel?

Creating a chat bot in Azure is confusing because there are so many different components which have to be created. I'm trying to understand all these parts, specifically:

App Registration: This is created with a command like az ad app create. This does not appear in the Azure portal under All Resources (??). Instead it appears under App Registrations. This has an Application (client) ID in the portal.

Bot Channels Registration: This has a different Microsoft App ID and password in the portal.

What's the difference between these two things, and which ID and password do I use in my code?

P.S. In addition to these two resources, I also have an app service and app service plan. These parts I think I understand.

Upvotes: 0

Views: 187

Answers (2)

masadskt
masadskt

Reputation: 1

The App Registration in Azure AD serves as your bot's identity and authorization for accessing Azure resources, whereas the Bot Channels Registration enables your bot to communicate with users on specific messaging channels.

In your bot's code, you'll use the Application (client) ID from the App Registration to authenticate with Azure AD.

Whereas whenever you want to use messaging channels like WhatsApp, Teams or Skype, you will use the Microsoft App ID and password from the Bot Channels Registration for authentication.

Upvotes: 0

Rajeesh Menoth
Rajeesh Menoth

Reputation: 1750

Azure App registrations: This will help to configure authentication and authorization workflows for a variety of different client types. So the unique "Client ID" and "Tenant ID" we will use for the authentication and authorization in the azure ad.

Bot Channel Registration: A bot channel registration with Azure, uses channels to facilitate communication with users. That's means a channel is a connection between communication applications and a bot. It will act as a secure bridge communication.

Reference:

  1. Bot Channel Registration

Upvotes: 2

Related Questions