Azure Code Samples

Learn to interact with Azure services through code

175 code samples match your filter

An ASP.NET Core 2.0 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: 1/18/2018

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: 1/4/2018

Cognitive Services: LUIS Console Application Sample

A simple console demostrating how to consume the LUIS Runtime SDK to predict user utterances.

cahann by Carol Hanna,
Last updated: 12/20/2017

Cognitive Services: LUIS Programmatic SDK Console Application Sample

A simple console that showcases how the SDK can be used to create and customize new LUIS apps.

cahann by Carol Hanna,
Last updated: 12/20/2017

Service Fabric Getting Started Sample

Get started with Service Fabric with these simple introductory sample projects.

vturecek by Vaclav Turecek,
Last updated: 12/18/2017

Auto-scale your Azure IoT Hub

Monitor Azure IoT Hub usage and auto-scale it when necessary

stevebus by Steve Busby,
Last updated: 12/17/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: 12/15/2017

Azure Storage Performance and Scalability Test

Sample code that shows how to read and write large amounts of data to Azure storage

georgewallace by George Wallace,
Last updated: 12/12/2017

Using the Circuit Breaker pattern in your HA apps with RA-GRS Storage

Shows how to implement the Circuit Breaker pattern for HA apps using RA-GRS Storage

robinsh by Robin Shahan,
Last updated: 12/12/2017

Transfer objects to and from Azure Blob storage using .NET

Code for QuickStart article for accessing Blobs with .NET

georgewallace by George Wallace,
Last updated: 12/12/2017

Copy blobs into an Azure Media Services asset

This sample shows how to copy existing blobs from a storage account into a new Azure Media Services asset.

Juliako by Julia Kornich,
Last updated: 12/10/2017

Encode and Deliver a Live Stream with Azure Media Services using .NET SDK

The sample shows how to create a channel that receives a single-bitrate live stream and encodes it to multi-bitrate stream.

Juliako by Julia Kornich,
Last updated: 12/7/2017

Use Azure Media Services to Stream your HLS content Protected with Apple FairPlay

The sample shows how to use Azure Media Services to dynamically encrypt your content with Apple FairPlay.

Juliako by Julia Kornich,
Last updated: 12/7/2017

Using PlayReady and/or Widevine Dynamic Common Encryption with .NET

The sample shows how to use Azure Media Services to dynamically encrypt your content with PlayReady and Widevine DRMs.

Juliako by Julia Kornich,
Last updated: 12/7/2017

Using Azure Media Services to Dynamically encrypt your assets with AES-128

The sample shows how to use Azure Media Services to dynamically encrypt your content with AES 128-bit clear encryption keys

Juliako by Julia Kornich,
Last updated: 12/7/2017

Use Azure Media Services to deliver PlayReady and/or Widevine licenses with .NET

Azure Media Services (AMS) enables you to ingest, encode, add content protection, and stream your content (see this article for details). However, there are customers who only want to use AMS to deliver licenses and/or keys and do encoding, encrypting and streaming using their on-premises servers. This samples shows how to configure AMS to deliver PlayReady and/or Widevine licenses.

Juliako by Julia Kornich,
Last updated: 12/7/2017

Get started with Azure Data Catalog using Service Principal

Shows how to create an Azure Data Catalog by using service principal authentication

spelluru by Sreedhar Pelluru,
Last updated: 12/2/2017

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

A WPF application that calls a Web API running on ASP.NET Core protected by Azure AD using OAuth 2.0 access tokens.

jmprieur by Jean-Marc Prieur,
Last updated: 11/30/2017