Search based message extensions allow you to query your service and post that information in the form of a card, right into your message. This sample allows you to perform a quick search to NPM Registry for a package and insert package details into conversations for sharing with your co-workers.
- How to use Teams Toolkit build a search based message extension.
- How to use Codespaces to run and preview a message extension.
- A GitHub account which will be used to create a codespace with fully configured dev environments in the cloud.
- A Microsoft 365 tenant in which you have permission to upload Teams apps. You can get a free Microsoft 365 developer tenant by joining the Microsoft 365 developer program.
-
Click Open in GitHub Codespaces badge to create a codespace for the sample app.
Note: you can customize the creation options (e.g. region, machine type) according to your needs.
-
Once your codespace is created, Select the Teams Toolkit icon on the left in the VS Code toolbar. And then select
Preview your Teams app (F5)
from Teams Toolkit or simply pressF5
to run and preview your application. -
When Teams Web Client is launched in the browser, select the
Add
button in the dialog to install your app to Teams.Note: You may need to allow pop-ups so that Codespace can open a new browser to sideload the app to Teams:
- From VS Code:
- Sign into Azure by clicking the
Sign in to Azure
under theACCOUNTS
section from sidebar. - Click
Provision
fromLIFECYCLE
section or open the command palette and select:Teams: Provision
. - Click
Deploy
or open the command palette and select:Teams: Deploy
.
- Sign into Azure by clicking the
- From TeamsFx CLI:
- Run command:
teamsapp auth login azure
. - Run command:
teamsapp provision --env dev
. - Run command:
teamsapp deploy --env dev
.
- Run command:
- From VS Code:
- Open the
Run and Debug Activity
Panel. SelectLaunch Remote (Codespaces)
from the launch configuration drop-down.
- Open the
- From TeamsFx CLI:
- Run command:
teamsapp preview --env dev
.
- Run command:
Date | Author | Comments |
---|---|---|
Apr 3, 2023 | Dooriya Li | Add ME sample for codespaces |
We really appreciate your feedback! If you encounter any issue or error, please report issues to us following the Supporting Guide. Meanwhile you can make recording of your journey with our product, they really make the product better. Thank you!