Azure Code Samples

Learn to interact with Azure services through code

332 code samples match your filter

The Business Reviewer

Demo app showing how to use several Azure services with Xamarin including Azure AD B2C, Azure Cosmos DB, Azure Functions, Azure App Services, and Azure Media Services

codemillmatt by Matt Soucoup,
Last updated: 4/23/2019

Cognitive Services Vision C# SDK quickstart samples

Latest sample code for Cognitive Services Vision C# SDK quickstarts.

easyj2j by John MacKenzie,
Last updated: 4/22/2019

Calling an ASP.NET Core Web API from a WPF application using Azure AD V2

Calling a ASP.NET Core Web API from a WPF application using Azure AD v2.0

jmprieur by Jean-Marc Prieur,
Last updated: 4/22/2019

Tutorial - Enable your Web Apps to sign-in users and call APIs with the Microsoft identity platform for developers

An ASP.NET Core 2.x Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)

jmprieur by Jean-Marc Prieur,
Last updated: 4/19/2019

Migrating an application from using ADAL.NET to using MSAL.NET

Demonstrate the migration of .NET applications fro AAD v1.0 (ADAL.NET) to AAD v2.0 (MSAL.NET)

jmprieur by Jean-Marc Prieur,
Last updated: 4/19/2019

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.

jmprieur by Jean-Marc Prieur,
Last updated: 4/18/2019

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: 4/17/2019

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: 4/17/2019

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: 4/17/2019

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: 4/17/2019

Azure IoT Samples for Csharp (.NET)

azure-iot-samples-csharp provides a set of easy-to-understand, continuously-tested samples for using Azure IoT Hub and Azure IoT Hub Device Provisioning Service using C# SDK.

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

Use Azure SQL Database from App Service with Managed Identity (Without Code Changes)

Sample that shows how to authenticate to Azure SQL Databases at run-time from an App Service with a Managed Service Identity.

nonik0 by Nick Brown,
Last updated: 4/15/2019

MipSdk-Dotnet-File-Quickstart

This sample application demonstrates using the Microsoft Information Protection SDK .NET wrapper to label and read a label from a file.

tommoser by Tom Moser,
Last updated: 4/15/2019

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.

jmprieur by Jean-Marc Prieur,
Last updated: 4/14/2019

Service Fabric Standalone Cluster Configuration

Templates for Service Fabric Standalone cluster configurations.

maburlik by Max Burlik,
Last updated: 4/12/2019

Azure HDInsight SDK for .NET Samples

Learn how to use the HDInsight SDKs with these samples

tylerfox by Tyler Fox,
Last updated: 4/12/2019

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: 4/11/2019

Universal Windows Platform application signing in users with Microsoft and calling the Microsoft Graph

A Windows Universal Platform client application using msal.net, accessing the Microsoft Graph for a user authenticating with Azure AD V2 endpoint

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