Azure Code Samples
Learn to interact with Azure services through code
488 code samples match your filter
Data Lake Analytics U-SQL Cognitive + Imaging at Scale demo
U-SQL Imaging demo
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.
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.
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
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.
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
Azure Virtual Machines Management Samples - Python
An example illustrating how to use Python to manage your Azure Virtual Machines
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
Using ADAL for Android in Xamarin with bindings
This sample shows how to build a Xamarin binding to our native ADAL for Android library.
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.
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.
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.
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.
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
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.
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.
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.
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.

