Azure Code Samples

Learn to interact with Azure services through code

656 code samples match your filter

An iOS Microsoft Graph API application with Azure AD v2.0 using third party libraries

Demonstrates how you can use a third party library like nxoauth2 to build an iOS application that authenticates Microsoft identity users to our new v2 (converged) identity service and calls a web API using OAuth 2.0 access tokens.

Azure-Samples by Brandon Werner,
Last updated: 4/18/2018

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.

sagonzal by Sergio Alejandro González,
Last updated: 4/18/2018

Integrating Azure AD into a Java console application using username and password

A java command line program for Windows, Linux, or OS X that demonstrates non-interactive authentication to Azure AD using a username & password.

azure-samples by Azure Samples,
Last updated: 4/18/2018

This sample has been archived

A console application that demonstrates how to make Differential Query calls to the Graph API, allowing applications to request only changed data from Azure AD tenants.

Azure-Samples by Jean-Marc Prieur,
Last updated: 4/18/2018

network-java-use-new-watcher

Getting started on using network watcher using Java

lenala by Elena Lakhno,
Last updated: 4/17/2018

Azure Data Lake Store: Getting Started

This sample Java application shows you how to use the Java SDK to upload and download files to Azure Data Lake Store, and do other filesystem operations.

asikaria-msft by Atul Sikaria,
Last updated: 4/17/2018

Calling Microsoft Graph from a web app using ADAL Python

A Python Web App calling the Microsoft Graph API, leveraging ADAL.python

abpati by Ab,
Last updated: 4/16/2018

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: 4/16/2018

Java-based example of using the Kafka Consumer, Producer, and Streaming APIs

Basic example of using Java to create a producer and consumer that work with Kafka on HDInsight. Also a demonstration of the streaming api.

blackmist by Larry Franks,
Last updated: 4/16/2018

Run sentiment analysis based on triggers with Azure Container Instances (ACI) and the ACI Logic Apps connector.

Learn how to use Azure Container Instances with Logic Apps to deploy containers in an event-driven way.

azure-samples by Azure Samples,
Last updated: 4/16/2018

Analytics & Visualization Samples for Academic Graph

Various examples to perform big data analytics over Microsoft Academic Graph and visualize the results.

alch-msft by Alvin Chen,
Last updated: 4/16/2018

Authenticating to Azure AD in daemon apps with certificates

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

jmprieur by Jean-Marc Prieur,
Last updated: 4/13/2018

Authentication samples for Azure Key Vault using the Azure Python SDK

Samples of authenticating to an Azure Key Vault vault

schaabs by Scott Schaab,
Last updated: 4/13/2018

This sample has been archived

Demonstrates how you can use a third party library like oidcandroidlib to build an Android application that authenticates Microsoft identity users to our new v2 (converged) identity service and calls a web API using OAuth 2.0 access tokens.

Azure-Samples by Daniel Dobalian,
Last updated: 4/13/2018

.NET Native App accessing Web Service that calls a downstream Web API with Conditional Access

A .NET 4.5 MVC Web API protected by Azure AD that receives tokens from a client and uses ADAL to get tokens for calling a downstream web API with a Conditional Access policy applied to it.

jmprieur by Jean-Marc Prieur,
Last updated: 4/11/2018

.NET Core MVC sample for Azure App Service

A simple MVC application that demonstrates how to build data-driven .NET Core apps in Azure App Service

cephalin by Cephas Lin,
Last updated: 4/11/2018

Invoking an API protected by Azure AD from a text-only device

This sample demonstrates how to leverage ADAL .NET to authenticate user calls to a web API (in this case, the directory Graph) from apps that do not have the capability of offering an interactive authentication experience.

jmprieur by Jean-Marc Prieur,
Last updated: 4/11/2018