Azure Code Samples

Learn to interact with Azure services through code
Image

488 code samples match your filter

Calling the Graph API in an Apache Cordova app

A native client app that calls the Azure AD Graph API, using the cordova plugin for Azure AD Graph.

azure-samples by Azure Samples,
Last updated: 7/6/2017

Single-Page Application built on Hello.js with Azure AD B2C

A single page app, implemented with an ASP.NET Web API backend, that signs up & signs in users using Azure AD B2C and calls the web API using OAuth 2.0 access tokens.

saeeda by Saeed Abbassi,
Last updated: 7/6/2017

Azure AD B2C: Call a .NET web API from a .NET web app

A combined sample for a .NET web application that calls a .NET Web API, both secured using Azure AD B2C

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

Sign in Azure AD + MSA Users using Javascript Open Source Library

Demonstrates how you can use a third party library to build a Javascript application that signs in users and gets an Access Token for the Microsoft Graph.

navyasric by Navya Canumalla,
Last updated: 7/5/2017

An ASP.NET Core web API with Azure AD B2C

An ASP.NET Core Web API for Azure AD B2C that shows how to protect your web api and accept B2C access tokens

dstrockis by Danny Strockis,
Last updated: 7/3/2017

Azure Virtual Machines Management Samples - Python

An example illustrating how to use Python to manage your Azure Virtual Machines

lmazuel by Laurent Mazuel,
Last updated: 6/30/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

Using ADAL for Android in Xamarin with bindings

This sample shows how to build a Xamarin binding to our native ADAL for Android library.

danieldobalian by Daniel Dobalian,
Last updated: 6/30/2017

Integrating Azure AD into a Java web application

A server app that uses Azure AD and the ADAL4J library for authenticating the user and calling a web API using OAuth 2.0 access tokens.

brandwe by Brandon Werner,
Last updated: 6/30/2017

Calling the Azure AD Graph API in a web application

A java web application that shows how to query the Azure AD Graph API including authentication, submitting REST requests & parsing JSON for read and write operations.

brandwe by Brandon Werner,
Last updated: 6/30/2017

Calling a web API in a web app using Azure AD and OpenID Connect

A .NET 4.5 MVC web app that signs Azure AD users in with OpenID Connect and calls a web api using OAuth 2.0 access tokens.

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

Calling Azure AD protected web APIs in a web app using OAuth 2.0

In the sample, an existing web app with its own way of signing in users adds the ability to call an Azure AD protected web API using OAuth 2.0 access tokens.

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

Calling a web api using an application identity

A .NET 4.5 MVC web app that uses Azure AD for sign-in and calls a web API under the application's identity, instead of the user's identity

jmprieur by Jean-Marc Prieur,
Last updated: 6/30/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: 6/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: 6/30/2017

Manually validating a JWT access token in a web API

How to manually process a JWT access token in a web API using the JSON Web Token Handler For the Microsoft .Net Framework 4.5.

dstrockis by Danny Strockis,
Last updated: 6/30/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: 6/30/2017