IDE: VS Code Extensions: Teams Toolkit https://marketplace.visualstudio.com/items?itemName=TeamsDevApp.ms-teams-vscode-extension
Azure Functions https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
Azure Documentation https://learn.microsoft.com/en-us/azure/?product=popular
Teams App Documentation https://learn.microsoft.com/en-gb/microsoftteams/platform/mstdd-landing
Azure Function Documentation https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-typescript?pivots=nodejs-model-v3
Example Teams App Tabs using Teams Toolkit
The Gauge component handles the emotion gauge, submitting, and the gauge animation. The Azure Function that Gauge uses is called Output. All components are controlled using React.
Two functions are being hosted on Azure called gauge-functions. Input, which takes information from the Azure database, and Output, which pushes information to the database. To call the functions, an API call using axios is used instead of jquery.
The important part about Azure is to use a consistent subscription. Currently, Subscription 1 has been used to host gauge-functions and gauge23 (gauge2023/gauge23) the database.
Going forward, 2 main things need to be done.
- SQL Tables
- Charts
- Functions
For the charts, re-rendering using useEffect and JSON conversion to create an array that can be passed through into the charts.
For functions, the ability to call an SQL script where a specific user's information can be pulled. This needs further research as finding information about using a Typescript function to pass a parameter into JSON was difficult. This would be used in accessing information for charts.
If you are having Firewall Issues
Create Azure Database
Integrate Azure SQL Database into Teams App
Turning our function into an API
Update or Merge Records in Azure SQL using Azure Function
Code Samples
Video that explains how Azure SQL works in an App
Integrate Azure Function with your Teams App
API Connection with Teams App
Good to know Teams Apps
Azure SQL
Bicep
