Azure Code Samples

Learn to interact with Azure services through code

418 code samples match your filter

Azure Service Fabric watchdog sample

Sample watchdog service that can monitor service health and metrics reporting them to Application Insights

toddabel by Todd Abel,
Last updated: 4/26/2017

Integrate Azure AD B2C into an Objective-C iOS application

Demonstrates how you can use a third party library to build an iOS application in Objective-C that authenticates Microsoft identity users to our Azure AD B2C identity service.

SaeedAkhter-MSFT by SaeedAkhter-MSFT,
Last updated: 4/26/2017

Deploy an SSH Enabled VM with a Template in Python

An example illustrating how to use Python to deploy an Azure Resource Manager Template

lmazuel by Laurent Mazuel,
Last updated: 4/25/2017

Getting Started with Managed - Create Virtual Machine Using Specialized Disk From Vhd - in .Net

Getting started with creating a virtual machine by importing a specialized operating system disk VHD

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

Getting Started with Managed - Create Virtual Machine Using Custom Image From V H D - in .Net

Getting started with creating a virtual machine using a VHD, either OS or data disk VHD

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

Get Azure invoice with .NET Core

An example on how to use .NET Core to connect to Azure and get your invoices

jlian by John Lian,
Last updated: 4/25/2017

Getting Started with Managed - Create Virtual Machine Using Custom Image From V M - in .Net

Getting started with creating a virtual machine using a custom image

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

Getting Started with Compute - Manage Virtual Machines In Parallel With Network - in .Net

Getting started on managing virtual machines within subnets in parallel in C#

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

Getting Started with Compute - Manage Virtual Machine Scale Set With Unmanaged Disks - in .Net

Getting started with managing Virtual Machine Scale Sets with Managed Disks in C#

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

Getting Started with Compute - Create V Ms Using Custom Image Or Specialized V H D - in .Net

Getting started on creating virtual machines from generalized image or specialized VHD in C#

anuchandy by Anu Thomas Chandy,
Last updated: 4/25/2017

active-directory-ios-native-nxoauth2-v2

Demonstrates how you can use a third party library like nxoauth2 to build an iOS application that authenticates Microsoft identity users to our new v2 (converged) identity service and calls a web API using OAuth 2.0 access tokens.

danieldobalian by Daniel Dobalian,
Last updated: 4/25/2017

Using ADAL for Objective-C in Xamarin using bindings

This sample shows how to build a Xamarin binding to our native ADAL for iOS library.

xerners by Brandon Werner,
Last updated: 4/25/2017

Integrating Azure AD into a NodeJS web application

A NodeJS web application that authenticates Azure AD users with OpenID Connect.

xerners by Brandon Werner,
Last updated: 4/25/2017

Integrating Azure AD into a Java web application

A server app that uses Azure AD and the ADAL4J library for authenticating the user and calling a web API using OAuth 2.0 access tokens.

xerners by Brandon Werner,
Last updated: 4/25/2017

Using ADAL for Android in Xamarin with bindings

This sample shows how to build a Xamarin binding to our native ADAL for Android library.

xerners by Brandon Werner,
Last updated: 4/25/2017

Securing a web API with Azure AD

A NodeJS web API that is secured using Azure AD and OAuth 2.0 access tokens.

xerners by Brandon Werner,
Last updated: 4/25/2017

Integrating Azure AD into a Java command line using username and password

A java command line program for Windows, Linux, or OS X that demonstrates non-interactive authentication to Azure AD using a username & password.

xerners by Brandon Werner,
Last updated: 4/25/2017

Using Azure AD Graph API directory extensions in a PHP web app

A PHP web application that calls the Graph API to register new directory extensions and manipulate the extension properties

xerners by Brandon Werner,
Last updated: 4/25/2017