Microsoft Graph tutorials

Microsoft Graph tutorials are step-by-step training exercises that guide you through creating a basic application that accesses data via the Microsoft Graph. They are designed to be completed within 30 minutes (45 minutes including optional sections).

In these exercises, you will create a basic command-line application that has the following features.

  • Enables user authentication
  • Accesses the user's profile
  • Lists the user's mailbox
  • Sends an email from the user's mailbox
  • Enables app-only authentication
  • Lists users in Azure Active Directory

Build your first app

Tutorial GitHub repository
.NET microsoftgraph/msgraph-training-dotnet
Go microsoftgraph/msgraph-training-go
Java microsoftgraph/msgraph-training-java
JavaScript microsoftgraph/msgraph-training-javascript
PHP microsoftgraph/msgraph-training-php
Power Automate microsoftgraph/msgraph-training-powerautomate)
PowerShell microsoftgraph/msgraph-training-powershell
Python microsoftgraph/msgraph-training-python
TypeScript microsoftgraph/msgraph-training-typescript


If you prefer to download a completed project, you can download from one of the following places.

  • Microsoft Graph Quick Start automates registering an application for you and downloads the completed project already configured for user authentication. Available for all tutorials except Power Automate.
  • Completed projects can be downloaded from their corresponding GitHub repositories. Instructions on registering an application and configuring the sample are located in each repository.

Next steps

Once you've completed a tutorial, you can learn more on Microsoft Learn, or explore our samples.

Microsoft Learn

For a deeper dive into Microsoft Graph, explore our Microsoft Graph learning paths on Microsoft Learn.


If the tutorials aren't quite what you need, our Microsoft Graph samples cover more scenarios and platforms, such as web apps and mobile apps.