Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Based on Microsoft documentation, the overall flow is technically valid. To set up the Teams bot, you'll need the following Azure resources and configuration.
1.Register a Microsoft Entra ID application
- Create a new app registration.
- Select Single tenant as the supported account type.
- Under Certificates & secrets, create a client secret and save the Secret Value immediately, as it cannot be viewed again after creation.
- No Microsoft Graph API permissions are required for this scenario.
Please record the following values:
- Application (Client) ID
- Directory (Tenant) ID
- Client Secret Value
2.Provide an Azure subscription
- The Azure Bot resource must live inside a subscription.
- The F0 (Free) Azure Bot tier is commonly used for development/testing. The subscription is simply where Azure resources are created.
3.Create the Azure Bot resource
In the Azure portal, create an Azure Bot resource.
- Choose Use existing app registration and specify the Application (Client) ID from Step 1.
- Select the appropriate subscription and resource group.
- Configure the messaging endpoint as:
https://<red-cloud-public-host>/api/messages
Please ensure this endpoint is publicly accessible over HTTPS.
4.Enable the Microsoft Teams channel
- Open the Azure Bot resource.
- Navigate to Channels.
- Add the Microsoft Teams channel and save the configuration.
5.Publish or install the Teams app
- Use the provided Teams app manifest or create one that references the bot's Application (Client) ID.
- Upload (sideload) the app into Microsoft Teams or publish it through the Teams Admin Center, depending on your organization's deployment process.
References:
- Azure Configuration | Teams SDK
- How to Register an App in Microsoft Entra ID" - Microsoft identity platform | Microsoft Learn
- Register a Bot Framework bot with Azure - Bot Service | Microsoft Learn
- Connect a Bot Framework bot to Microsoft Teams - Bot Service | Microsoft Learn
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.