Azure Code Samples

Learn to interact with Azure services through code

347 code samples match your filter

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

hdinsight-java-storm-eventhub

A basic example of how to read and write data to Azure Event Hubs from an Apache Storm topology running on HDInsight.

blackmist by Larry Franks,
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 export premium Redis cache using cross-platform method

This sample demonstrates how to use Azure CLI to export Azure Redis Cache data to Azure Storage as backup

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

How to export premium Redis cache by simulating as Azure portal

This sample demonstrates how to use Azure Portal endpoint to export Azure Redis Cache data to Azure Storage as backup

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

How to create Azure Batch PaaS Cloud service by Python

This sample demonstrates how to use Python to create PaaS cloud service pool in Azure Batch

msonecode by One Code,
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

Python Contoso Ads Application Cloud Service

This project demonstrates how to build Python Contoso Ads Azure Cloud Service

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

How to write data to Event Hub via JMS and read via Storm on Azure

This is a Java project which shows how to send message to Azure EventHub by Apach Storm and receive by JMS

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

How to get started for using IoT Hub REST API in Python

This Python sample app is used by the getting started content to demonstrate how easy it is to create an IoTHub Instance on Azure portal, and register a new device for the IoTHub, then send a message from device (simulated device app) to cloud.

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