Azure Code Samples

Learn to interact with Azure services through code

123 code samples match your filter

Media Services: Integrating Azure Media Services with Azure Functions

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: 2/23/2017

Power BI Embedded - Integrate a report into a web app

A Power BI Embedded sample that shows you how to integrate a Power BI report into your own web app

dvana by Derrick VanArnam [MSFT],
Last updated: 2/22/2017

Universal Windows Platform (UWP) app calling the directory Graph API

A Universal Windows Platform (UWP) app that uses the Windows 10 WebAccountManager API to obtain an access token for and call the Azure AD Graph API.

dstrockis by Danny Strockis,
Last updated: 2/21/2017

Calling a web api using an application identity

A .NET 4.5 MVC web app that uses Azure AD for sign-in and calls a web API under the application's identity, instead of the user's identity

dstrockis by Danny Strockis,
Last updated: 2/21/2017

Calling web APIs in a daemon or long-running process

A Windows console application that calls a web API using its app identity (instead of a user's identity) to get access tokens in an unattended job or process.

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

dstrockis by Danny Strockis,
Last updated: 2/17/2017

Service Fabric Data Aggregation Sample (aka HealthMetrics)

Learn about large-scale data aggregation and management of large volumes of end-user devices with Service Fabric.

masnider by Matt,
Last updated: 2/17/2017

Manually validating a JWT access token in a web API

How to manually process a JWT access token in a web API using the JSON Web Token Handler For the Microsoft .Net Framework 4.5.

dstrockis by Danny Strockis,
Last updated: 2/17/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.

dstrockis by Danny Strockis,
Last updated: 2/16/2017

How to execute PowerShell from mounted Azure storage file disks in Azure Cloud service worker role

This sample demonstrates how to let cloud service worker role execute PowerShell script file in a mounted Azure File Storage disk

msonecode by One Code,
Last updated: 2/16/2017

How to import certificate and grant access to private key

This C# project demonstrates several ways about how to import certificate to cloud service instance certificate store and set account acl on it

msonecode by One Code,
Last updated: 2/16/2017

How to create Internal Load Balancer for PaaS cloud service

This C# sample demonstrates how to use Internal Load Balancer for Cloud Services

msonecode by One Code,
Last updated: 2/16/2017

Host multiple websites within one Azure webrole using Visual Studio 2015

This C# sample demonstrates how to set one WebRole contains multiple websites

msonecode by One Code,
Last updated: 2/16/2017

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.

dstrockis by Danny Strockis,
Last updated: 2/15/2017

An ASP.NET Core web app with Azure AD B2C

An ASP.NET Core web application that signs-in users with Microsoft Accounts and Azure AD Accounts from multiple Azure AD directories

gsacavdm by Gerardo Saca,
Last updated: 2/14/2017

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: 2/14/2017

Azure Service Fabric Key Functions Simple Project

This C# project demonstrates use simple codes to present most Azure Service Fabric key functions, such as how to use Stateless WebAPI, Stateless Service, Stateful Service, Stateful Actor and communication between them.

msonecode by One Code,
Last updated: 2/13/2017

Calling a web API in an ASP.NET Core web application using Azure AD

An ASP.NET Core web application that authenticates Azure AD users and calls a web API using OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 2/10/2017