Azure Code Samples

Learn to interact with Azure services through code

142 code samples match your filter

Calling the Azure AD Graph API in a web application

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library

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

Service Fabric + Azure API Management

Azure Resource Manager templates to create a Service Fabric cluster with Azure API Management.

vturecek by Vaclav Turecek,
Last updated: 6/22/2017

Sample - Customer Reviews App with Cognitive Services (Azure Functions tools for Visual Studio 2017)

This sample showcases the Azure Functions tooling for Visual Studio 2017. It has a website where customers submit reviews, stored in Azure storage blobs and CosmosDB; and an Azure Function for automated moderation of customer reviews using Microsoft Cognitive Services. It uses an Azure storage queue to decouple the website from the function.

nzthiago by Thiago Almeida,
Last updated: 6/22/2017

Getting started with Service Fabric with .NET Core

Get started with Service Fabric with .NET Core

raunakpandya by Raunak Pandya,
Last updated: 6/22/2017

C# Azure Function for generating an ICS File

Learn how to create an ICS file using Azure Functions and C# programming language

mbcrump by Michael Crump,
Last updated: 6/20/2017

Integrate Microsoft identity and the Microsoft Graph into a Xamarin forms app using MSAL

This is a simple Xamarin Forms app showcasing how to use MSAL to authenticate MSA and Azure AD via the converged MSA and Azure AD authentication endpoints, and access the Microsoft Graph with the resulting token.

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

active-directory-dotnet-native-multitarget

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: 6/20/2017

Demo - To-do list reimagined iOS app

A demo iOS app that uses Azure AD for sign up & sign in and calls the Azure AD Graph API to search for users

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

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

An ASP.NET Core web app with Azure AD B2C

An ASP.NET Core web application that can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.

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

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.

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

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.

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

.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: 6/20/2017

Build an app with admin restricted scopes using the v2.0 endpoint

An ASP.NET MVC application that shows how to use the Azure AD v2.0 endpoint to collect consent for permissions that require administrative consent.

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