Home

Awesome

Microsoft Graph Training Module - Build MVC apps with the Microsoft Graph .NET SDK

This module will introduce you to working with the Microsoft Graph .NET SDK in creating an ASP.NET MVC web application to access data in Office 365.

This module is based on the following Microsoft Learn module: Build ASP.NET MVC web applications with the Microsoft Graph .NET SDK

Lab - Build MVC apps with the Microsoft Graph .NET SDK

The lab for this module is available in multiple units within the associated Microsoft Learn module. Use the following links to jump to the specific unit. Each Microsoft Learn unit represents a different lab exercise and demo in the presentation.

  1. Exercise: Create ASP.NET MVC web app and register Azure AD app

    In this exercise, you'll create an ASP.NET MVC web application with Visual Studio and Azure AD application with the Azure Active Directory admin center. Once the application is created, you'll then add the necessary packages and libraries that support user authentication and requesting data from Microsoft Graph.

  2. Exercise: Incorporate the Microsoft Authentication Library into ASP.NET MVC web apps

    In this exercise, you'll extend the application from the previous exercise to support authentication with Azure AD. This is required to obtain the necessary OAuth access token to call the Microsoft Graph API. In this step, you'll integrate the OWIN middleware and the Microsoft Authentication Library library into the application.

  3. Exercise: Incorporate Microsoft Graph into ASP.NET MVC web apps

    In this exercise, you'll incorporate Microsoft Graph into the application. For this application, you'll use the Microsoft Graph Client Library for .NET to make calls to Microsoft Graph.

Demos

  1. Create an ASP.NET MVC web app
  2. Add Azure AD authentication
  3. Add Microsoft Graph

Watch the Module

This module has been recorded and is available in the Office Development YouTube channel: Build MVC apps with the Microsoft Graph .NET SDK

Contributors

RolesAuthor(s)
Lab / Slides / DemosAndrew Connell (Microsoft MVP, Voitanos) @andrewconnell
QARob Windsor (Microsoft MVP, PAIT Group) @rob-windsor
QAJulie Turner (Microsoft MVP, Sympraxis Consulting) @juliemturner
Sponsor / SupportYina Arenas (Microsoft) @yinaa

Version history

VersionDateComments
1.23May 17, 2022FY2022Q4 content refresh
1.22March 1, 2022FY2022Q3 content refresh
1.21December 8, 2021FY2022Q2 content refresh
1.20September 13, 2021FY2022Q1 content refresh
1.19May 26, 2021Refresh slides to new template
1.18May 17, 2021FY2021Q4 content refresh
1.17March 6, 2021FY2021Q3 content refresh
1.16December 10, 2020FY2021Q2 content refresh
1.15September 10, 2020FY2021Q1 content refresh
1.14June 11, 20202020Q4 content refresh
1.13March 10, 20202020Q3 content refresh
1.12January 14, 2020Port module to MS Learn
1.11December 9, 20192020Q2 content refresh
1.10September 9, 20192020Q1 content refresh
1.9June 18, 2019Updated readme to refreshed screencast recording
1.8May 29, 20182019Q4 content refresh
1.7April 4, 20182019Q3 content refresh
1.6December 18, 20182019Q2 content refresh
1.5November 27, 2018Onboarded to docs.microsoft.com/graph
1.4September 12, 20182019Q1 content refresh
1.3August 24, 2018Revised modules for consistency with other training.
1.2June 28, 2018Added screencast.
1.1June 04, 2018Rewritten to use latest guidance.
1.0~November 24, 2017Add Microsoft Graph related product breakouts.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

<img src="https://telemetry.sharepointpnp.com/msgraph-training-aspnetmvcapp" />