Azure Code Samples

Learn to interact with Azure services through code

156 code samples match your filter

Service Fabric Container Samples

This sample demonstrate two guest executable services communicating (one C# and one Nodejs) which are then packaged into docker containers

msfussell by Mark Fussell,
Last updated: 9/16/2017

Service Fabric .NET Quickstart

Service Fabric quickstart .net application sample

mikkelhegn by Mikkel Mork Hegnhoj,
Last updated: 9/14/2017

Azure Service Fabric watchdog sample

Sample watchdog service that can monitor service health and metrics reporting them to Application Insights

toddabel by Todd Abel,
Last updated: 9/13/2017

U-SQL: Imaging at Scale

U-SQL Imaging demo

saveenr by Saveen Reddy,
Last updated: 9/11/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: 9/11/2017

Integrating Azure AD into a cross platform Xamarin application

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: 9/11/2017

Call the Azure AD Graph API from a native client

A .NET console application that performs various queries against the Azure AD Graph API using both user identities and application identities.

jmprieur by Jean-Marc Prieur,
Last updated: 9/11/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: 9/10/2017

Build a multi-tenant SaaS web application that calls a web API using Azure AD

A sample .NET 4.5 MVC SaaS web app that signs-up and signs-in users from any Azure AD tenant, and calls the Azure AD Graph API.

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

Calling a downstream web API from a web API using Azure AD

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 another downstream web API

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

.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: 9/4/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: 8/31/2017

Manage Azure Stack resource and storage with .Net

An example illustrating how to use .NET to manipulate Azure Stack resources and storage services.

guanghu by guanghu,
Last updated: 8/30/2017

Getting started with Service Fabric with .NET Core

Get started with Service Fabric with .NET Core

raunakpandya by Raunak Pandya,
Last updated: 8/28/2017

Developing a .NET console app using DocumentDB

This sample shows you how get started quickly with Microsoft Azure DocumentDB service and .NET

andrewhoh by Andrew Hoh,
Last updated: 8/28/2017

Intelligent Mission

A sample app to support the Intelligent Mission leveraging Azure Government

smichelotti by Steve Michelotti,
Last updated: 8/27/2017