Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
page_type description products languages extensions contentType createdDate
sample
This sample illustrates how you can use Teams App Installation Life Cycle by calling Microsoft Graph APIs.
office-teams
office
office-365
csharp
samples
07-07-2021 13:38:26

App Installation

This sample app demonstarte the installation lifecycle for Teams Apps which includes create, update delete Apps

Prerequisites

To try this sample

  • Register your app with Microsoft identity platform via the Azure AD portal

  • You need to add following permissions mentioned in the below screenshots to call respective Graph API

  • Clone the repository

    git clone https://github.com/OfficeDev/microsoft-teams-samples.git
  • Build your solution

    • Launch Visual Studio
    • File -> Open -> Project/Solution
    • Navigate to samples/graph-app-installation-lifecycle/csharp/AppInstallation folder
    • Select AppInstallation.csproj file
    • Press F5 to run the project
  • Setup ngrok

    ngrok http -host-header=rewrite 3978
  • Config changes

    • Add your client id, client secret in appsettings.json
    • Press F5 to run the project
    • Update the ngrok in manifest
    • Zip all three files present in manifest folder
  • Upload app manifest file (zip file) to your team