Azure Code Samples

Learn to interact with Azure services through code

773 code samples match your filter

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

Azure Virtual Machines Management Samples - Python

An example illustrating how to use Python to manage your Azure Virtual Machines

lmazuel by Laurent Mazuel,
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

Azure Media Services v3 .NET Core - Serverless Workflows

This project contains advanced VOD media workflow examples of using Azure Functions v2 with Azure Media Services v3. The project includes several folders of sample Azure Functions for use with Azure Media Services that show workflows related to ingesting content directly from blob storage, encoding, and writing content back to blob storage.

xpouyat by Xavier Pouyat,
Last updated: 4/17/2019

MipSdk-PolicyApi-Cpp-Sample-Basic

The sample demonstrates using the Microsoft Information Protection Policy API to list all available labels for a user, then computes the actions the selected labels should take, displaying the actions.

tommoser by Tom Moser,
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

Using MIP SDK with ASP.NET to Label Files on Download

This project demonstrates using the Microsoft Information Protection SDK to apply an MIP label to an Excel file generated by an ASP.NET application.

tommoser by Tom Moser,
Last updated: 4/16/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

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/16/2019

Hybrid-Storage-Java-Manage-StorageAccounts

Getting started on managing storage accounts using Java on Azure Stack hybrid cloud https://docs.microsoft.com/en-us/java/azure

viananth by Vishnu Priya Ananthu Sundaram,
Last updated: 4/15/2019

Hybrid-Resources-Java-Manage-ResourceGroup

Getting started on managing resource groups using Java on Azure Stack hybrid cloud https://docs.microsoft.com/en-us/java/azure

viananth by Vishnu Priya Ananthu Sundaram,
Last updated: 4/15/2019

Hybrid-Compute-Java-Manage-VM

Getting Started with Compute - Manage Virtual Machines using Java on Azure Stack hybrid cloud https://docs.microsoft.com/en-us/java/azure

viananth by Vishnu Priya Ananthu Sundaram,
Last updated: 4/15/2019

Hybrid-Compute-GO-Create-VM

Getting Started with Compute - Create Virtual Machines using Golang on Azure Stack hybrid cloud

seyadava by Ali Nikravesh,
Last updated: 4/15/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