Azure Code Samples

Learn to interact with Azure services through code

456 code samples match your filter

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.

gsacavdm by Gerardo Saca,
Last updated: 5/23/2017

Integrate Azure AD B2C into a Xamarin forms app using MSAL

This is a simple Xamarin Forms app showcasing how to use MSAL to authenticate users via Azure Active Directory B2C, and access a Web API with the resulting tokens.

gsacavdm by Gerardo Saca,
Last updated: 5/23/2017

active-directory-android-native-oidcandroidlib-v2

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.

brandwe by Brandon Werner,
Last updated: 5/23/2017

Microsoft Bing Speech API: Windows Speech-to-Text Sample

Windows SDK for the Microsoft Speech-to-Text API, part of Cognitive Services

priyaravi20 by priyaravi20,
Last updated: 5/23/2017

Read and write from EventHubs using a hybrid .NET/Java Storm topology

An example of using a hybrid dotnet/Java-based Apache Storm topology to work with Azure Event Hubs

blackmist by Larry Franks,
Last updated: 5/23/2017

Developing a Node.js app using Azure Cosmos DB

Azure Cosmos DB's Graph API provides the graph data model and Gremlin. This tutorial shows how to get started with the Graph (Gremlin) API and the Node.js SDK.

arramac by Aravind Ramachandran,
Last updated: 5/22/2017

hdinsight-java-hive-jdbc

An example of how to use the JDBC to issue Hive queries from a Java client application.

blackmist by Larry Franks,
Last updated: 5/22/2017

Deploy an SSH Enabled VM with a Template in Python

An example illustrating how to use Python to deploy an Azure Resource Manager Template

lmazuel by Laurent Mazuel,
Last updated: 5/22/2017

Getting Started with Azure Search using .NET

Getting Started with Azure Search using .NET

azure-samples by Azure Samples,
Last updated: 5/22/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

parakhj by Parakh Jain,
Last updated: 5/22/2017

An ASP.NET Core web app with Azure AD B2C

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

gsacavdm by Gerardo Saca,
Last updated: 5/22/2017

Integrate Azure AD into an iOS application

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

brandwe by Brandon Werner,
Last updated: 5/21/2017

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.

dstrockis by Danny Strockis,
Last updated: 5/21/2017

WPF application signing in users with Azure Active Directory B2C and calling an API

Sample showing how a Windows Desktop .NET (WPF) application can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.

gsacavdm by Gerardo Saca,
Last updated: 5/21/2017

Integrate Microsoft identity and the Microsoft Graph into a web application using OpenID Connect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph.

vibronet by Vittorio Bertocci,
Last updated: 5/19/2017

Authorization in a web app using Azure AD application roles & role claims

A .NET 4.5 MVC web app that uses Azure AD application roles for authorization.

dstrockis by Danny Strockis,
Last updated: 5/19/2017

Media Services: Integrating Azure Media Services with Azure Functions and Logic Apps

Sample Azure Functions for use with Azure Media Services. Ingest from Azure Blobs, encode and output to Azure Blobs, monitor encoding progress, and use WebHooks or Queues to hook into the workflow.

johndeu by John Deutscher,
Last updated: 5/18/2017

WPF application signing in users with Microsoft and calling the Microsoft Graph

Sample showing how a windows Desktop .NET (WPF) application can get an access token using MSAL.NET and call the Microsoft Graph API or other APIs protected by Azure Active Directory v2

jmprieur by Jean-Marc Prieur,
Last updated: 5/18/2017