page_type | languages | products | name | urlFragment | description | extensions | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
My First Meeting App |
officedev-teamsfx-samples-tab-hello-world-in-meeting |
A template for apps using only in the context of a Teams meeting. |
|
This App helps to enable your apps for Teams meetings and configure the apps to be available in the meeting scope. This app covers show Teams context in meeting detail view, chat view and side panel.
App Caching was configured in this sample to reduce the reload time of your app in a meeting. To learn about limitations and available scopes, please check Enable app caching for your tab app.
- How to use Teams Toolkit to create a Teams meeting app.
- How to use Teams Client Library to get context data in Teams app.
- Node.js, supported versions: 18, 20, 22
- 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.
- Teams Toolkit Visual Studio Code Extension version 5.0.0 and higher or Teams Toolkit CLI
- Follow the instruction to create a meeting in Teams. Then in the Calendar you can find the meeting you just created. Double click the meeting will open the meeting details, and will enable the meeting app to be added in this meeting in later steps.
- In Visual Studio Code: Start debugging the project by hitting the
F5
key in your keyboard. Alternatively open theRun and Debug Activity
panel(Ctrl+Shift+D) in Visual Studio Code and click theRun and Debug
green arrow button. - The Teams web client will launch in your browser, click the small arrow sit aside the
Add
button and selectAdd to a meeting
, then select the meeting you just created. - Click
Set up a tab
in the next step, it will take you to the meeting configuration page. - In the configuration page, click
Save
, this may take several minutes, and then you will see the meeting chat tab. - Click
Join
to join the meeting. - Select the tab (default name is
My Tab
) in the bar, you will see a side panel tab in the meeting.
Deploy your project to Azure by following these steps:
- Open Teams Toolkit in Visual Studio Code, and sign in your Azure account by clicking the
Sign in to Azure
in theACCOUNTS
section from sidebar. - After you signed in, select a subscription under your account. The Teams Toolkit will use this subscription to provision Azure resources to host you app.
- Open the Teams Toolkit and click
Provision
in theLIFECYCLE
section. Alternatively open the command palette(Ctrl+Shift+P) and type:Teams: Provision
command. - Open the Teams Toolkit and click
Deploy
in theLIFECYCLE
section. Alternatively open the command palette(Ctrl+Shift+P) and type:Teams: Deploy
command.
Note: Provision Azure cloud resources and deploy to Azure may cause charges to your Azure Subscription.
After you have completed the provision and deploy steps in Deploy the app to Azure
section, you can preview your app in Teams client by following steps below:
- Open the
Run and Debug Activity
panel from sidebar, or use short key Ctrl+Shift+D. - Select
Launch Remote (Edge)
orLaunch Remote (Chrome)
in the launch configuration (a dropdown selection in the upper-left corner). - Press the
Start Debugging
(small green arrow) button to launch your app, the Teams web client will be automatically opened in your browser, where you will see your app running remotely from Azure.
Date | Author | Comments |
---|---|---|
Dec 15, 2022 | Kai | update to support Teams Toolkit V4.2.0 |
Mar 16, 2023 | Kai | update to support Teams Toolkit V5.0.0 |
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!