Skip Navigation

Azure Code Samples

Learn to interact with Azure services through code

742 code samples match your filter

Invoking an API protected by Azure AD from a text-only device

.NET Core 2.1 console application letting a user acquire a token for the Microsoft Graph by signing in through another device having a Web browser, with the Azure AD v2.0 endpoint

jmprieur by Jean-Marc Prieur,
Last updated: 11/14/2018

Service Fabric Container Samples

This sample demonstrate two guest executable services communicating (one C# and one Nodejs) which are then packaged into docker containers

suhuruli by Sudhanva Huruli,
Last updated: 11/13/2018

Microsoft Azure Event Grid Publish/Consume Samples for Python

Python Samples that show how you can use Event Grid to publish and consume events, and how to manage topics and event subscriptions.

lmazuel by Laurent Mazuel,
Last updated: 11/13/2018

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: 11/13/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: 11/12/2018

Retrieve opened issue count on GitHub with Azure Durable Functions

Build an Azure Durable Functions that will scrape GitHub for opened issues and store them on Azure Storage.

MaximRouiller by Maxime Rouiller,
Last updated: 11/12/2018

Universal Windows Platform application signing in users with Microsoft and calling the Microsoft Graph

A Windows Universal Platform client application using msal.net, accessing the Microsoft Graph for a user authenticating with Azure AD V2 endpoint

jmprieur by Jean-Marc Prieur,
Last updated: 11/12/2018

Invoking an API protected by Azure AD with Integrated Windows Authentication, on a Windows domain jointed or AAD joined machine

.NET console application letting a user acquire a token for the Microsoft Graph using Integrated Windows Authentication (on domain joined or AAD joined machines)

jmprieur by Jean-Marc Prieur,
Last updated: 11/12/2018

.NET Core Console application letting users sign-in with Username/password to call Microsoft Graph API

A .NET Core 2.1 console application which gets an access token to call the graph using a username and password

jmprieur by Jean-Marc Prieur,
Last updated: 11/12/2018

Retrieve opened issue count on GitHub with Azure Durable Functions

Build an Azure Durable Functions that will scrape GitHub for opened issues and store them on Azure Storage.

MaximRouiller by Maxime Rouiller,
Last updated: 11/12/2018

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: 11/12/2018

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: 11/12/2018

Integrate Microsoft identity and the Microsoft Graph into a Xamarin forms app using MSAL

This is a simple Xamarin Forms app showcasing how to use MSAL to authenticate MSA and Azure AD via the converged MSA and Azure AD authentication endpoints, and access the Microsoft Graph with the resulting token.

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

Build daemon console application with the Azure AD v2.0 endpoint

A .NET Core 2.x simple daemon console application calling the graph with its own identity

jmprieur by Jean-Marc Prieur,
Last updated: 11/10/2018

Integrate Microsoft identity and the Microsoft Graph into a web application using OpenID Connect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.

jmprieur by Jean-Marc Prieur,
Last updated: 11/10/2018

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: 11/10/2018

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

jmprieur by Jean-Marc Prieur,
Last updated: 11/10/2018

Build a multi-tenant daemon with the Azure AD v2.0 endpoint

A web application that sync's data from the Microsoft Graph using the identity of the application, instead of on behalf of a user.

jmprieur by Jean-Marc Prieur,
Last updated: 11/10/2018