Azure Code Samples

Learn to interact with Azure services through code

66 code samples match your filter

Calling a ASP.NET Core Web API from a WPF application using Azure AD

A WPF application that calls a Web API running on ASP.NET Core protected by Azure AD using OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 11/30/2017

Azure AD Javascript Getting Started

A javascript based single page app with a .NET backend that authenticates Azure AD users and calls the backend web api using access tokens, without using any SPA frameworks.

jmprieur by Jean-Marc Prieur,
Last updated: 11/30/2017

Build a multi-tenant SaaS web application using Azure AD & OpenID Connect

A sample .NET 4.5 MVC web app that signs-up and signs-in users from any Azure AD tenant using OpenID Connect.

dstrockis by Danny Strockis,
Last updated: 11/22/2017

Call an Azure AD protected Web API in an AngularJS Single Page App

An AngularJS single page app, implemented with an ASP.NET Web API backend, that signs users in using Azure AD and calls another web API using OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 11/22/2017

Integrate Azure AD into a web application using OpenID Connect

A .NET MVC web application that uses OpenID Connect to sign-in users from a single Azure Active Directory tenant.

dstrockis by Danny Strockis,
Last updated: 11/22/2017

Integrating Azure AD into an ASP.NET Core web app

An ASP.NET Core web application that signs-in Azure AD users from a single Azure AD tenant.

jmprieur by Jean-Marc Prieur,
Last updated: 11/22/2017

Calling a web API in an ASP.NET Core web application using Azure AD

An ASP.NET Core web application that authenticates Azure AD users and calls a web API using OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 11/1/2017

Securing a web API with Azure AD

A NodeJS web API that is secured using Azure AD and OAuth 2.0 access tokens.

brandwe by Brandon Werner,
Last updated: 11/1/2017

Integrating Azure AD into a Windows desktop application

A .NET 4.5 WPF application that authenticates a user and calls web API using Azure AD and OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 10/23/2017

Call the Azure AD Graph API from a native client

A .NET console application that performs various queries against the Azure AD Graph API using both user identities and application identities.

jmprieur by Jean-Marc Prieur,
Last updated: 9/25/2017

Node.js Web API with Azure AD v2.0

A small Node.js Web API that works with Azure AD v2.0 to accept and validates access tokens.

navyasric by Navya Canumalla,
Last updated: 9/22/2017

Integrating Azure AD (v2.0 endpoint) into an ASP.NET Core web app

An ASP.NET Core web application that signs-in users with Microsoft Accounts and Azure AD Accounts from multiple Azure AD directories

dstrockis by Danny Strockis,
Last updated: 6/20/2017

Demo - To-do list reimagined admin web portal

A demo web application that syncs the app's local user store with users that have been assigned to the application in the directory.

jmprieur by Jean-Marc Prieur,
Last updated: 6/20/2017

Using Azure AD Graph API directory extensions in a PHP web app

A PHP web application that calls the Graph API to register new directory extensions and manipulate the extension properties

brandwe by Brandon Werner,
Last updated: 4/28/2017

Using the Graph API Reporting Features

A web application sample that calls the Azure AD Graph API reporting capabilities

jmprieur by Jean-Marc Prieur,
Last updated: 6/20/2017

Authenticating to Azure AD in daemon apps with certificates

A .NET core daemon application that uses a certificate to authenticate with Azure AD and get OAuth 2.0 access tokens to a .NET core web api

jmprieur by Jean-Marc Prieur,
Last updated: 6/30/2017

Sample application for Microsoft RMS SDK v4.1 for Windows Store Applications

RMS Samples for Windows Store Applications

yaircohen by Yair Cohen,
Last updated: 1/21/2016

Integrating Azure AD into a cross platform Xamarin application

A Xamarin application that signs users in with Azure Active Directory across several different platforms and calls the Azure AD Graph API using OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 9/11/2017