Register an Azure bot
Register a Microsoft Entra ID app and Azure bot, connect them to the Microsoft Teams messaging account and publish the app in Teams.
Register an Azure bot once per Servicely instance before you send notifications or connect Sofi to Microsoft Teams. You end with a Teams app your users can install, linked to the Microsoft Teams messaging account in Servicely.
Before you begin
- You need the
administratorrole in Servicely. - You need rights in Microsoft Azure to create app registrations and Azure Bot resources, and Teams administrator rights to publish apps.
- Install the Microsoft Teams Integration application. It ships an inactive messaging account named Microsoft Teams.

Steps
-
In the Azure portal, go to Microsoft Entra ID → App registrations → New registration. Enter a name such as “Servicely Teams Bot”. Choose single tenant, leave Redirect URI blank and select Register. Note the Application (client) ID and Directory (tenant) ID.

The Azure portal search with App registrations in the results. -
In the registration, go to Certificates & secrets → Client secrets → New client secret. Copy the Value at once. Azure hides it when you leave the page, and the Secret ID is not the value you need.

A new client secret with its Value column visible. -
Search the Azure portal for Azure Bot and select it under Marketplace. Create the bot with the settings in the table below, then select Go to resource.

The Azure portal search with Azure Bot under Marketplace. -
In the bot, go to Settings → Channels and select Microsoft Teams. Accept the terms, choose Microsoft Teams Commercial and select Apply.

The bot’s Channels page with Microsoft Teams in the list of available channels. -
In Servicely, go to Messaging & notifications → Accounts & channels → Messaging accounts and open Microsoft Teams. Fill in App Id, App secret and Tenant Id from steps 1 and 2. Select Uses Multitenant Bot only for a multi-tenant registration. Save.

The Messaging accounts item in the Accounts & channels menu. -
Select Copy endpoint URL. The URL ends with
/_messaging/v3/teams/and the account’s record ID.
The Microsoft Teams messaging account with Test Connection and Copy endpoint URL at the foot. -
In the Azure bot, go to Settings → Configuration. Paste the URL into Messaging endpoint and select Apply. Leaving the field does not save it.

The bot’s Configuration page with the Messaging endpoint field. -
In the Teams Developer Portal, go to Apps → New app. On Basic information, enter the names and descriptions users will see, and paste the Application (client) ID. Save.
-
Go to App features → Bot. Enter the application ID as the bot ID. Select Upload and download files and the scopes users need, at least Personal. Save.

The bot settings with Upload and download files and the Personal, Team and Group Chat scopes selected. -
Run App validation, then select Publish → Publish to your org.

The Publish menu with Publish to your org. -
In the Teams Admin Center, go to Teams apps → Manage apps. Find the app, which is pending approval, and publish it. Restrict who can install it if you are testing.

Manage apps in the Teams Admin Center with the new app pending approval. -
In the Developer Portal, copy the App ID from Basic information. Paste it into Manifest Id on the Microsoft Teams messaging account, set Active and save. Select Test Connection.

The app’s Basic information page with the App ID.
| Azure Bot setting | Value |
|---|---|
| Bot handle | A unique name, used only in Azure. Name it after the instance. |
| Subscription and Resource group | The subscription and resource group to hold the bot |
| Pricing tier | The tier you need. Change it with Change plan. |
| Type of App | Single Tenant, unless the registration is multi-tenant |
| Creation type | Use existing app registration, pointing at the registration from step 1 |
Result
Test Connection reports success when the app ID, secret and tenant ID can obtain a token from Microsoft. Publishing in Teams can take from minutes to hours. Then users can find and install the app like any other Teams app. Test Connection does not check the messaging endpoint or the Teams channel. A message sent to the bot checks those.