Azure Code Samples
Learn to interact with Azure services through code
142 code samples match your filter
A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
Azure Resource Manager templates to create a Service Fabric cluster with Azure API Management.
This sample showcases the Azure Functions tooling for Visual Studio 2017. It has a website where customers submit reviews, stored in Azure storage blobs and CosmosDB; and an Azure Function for automated moderation of customer reviews using Microsoft Cognitive Services. It uses an Azure storage queue to decouple the website from the function.
Learn how to create an ICS file using Azure Functions and C# programming language
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.
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.
A demo iOS app that uses Azure AD for sign up & sign in and calls the Azure AD Graph API to search for users
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.
An ASP.NET Core web application that can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.
A combined sample for a .NET web application that calls a .NET Web API, both secured using 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
An ASP.NET Core web application that signs-in users with Microsoft Accounts and Azure AD Accounts from multiple Azure AD directories
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.
A demo web application that syncs the app's local user store with users that have been assigned to the application in the directory.
Sample showing how a Windows Desktop .NET (WPF) application can sign in a user using Azure AD B2C, get an access token using MSAL.NET and call an API.
A .NET 4.5 MVC Web API protected by Azure AD that receives tokens from a client and uses ADAL to get tokens for calling a downstream web API with a Conditional Access policy applied to it.
An ASP.NET MVC application that shows how to use the Azure AD v2.0 endpoint to collect consent for permissions that require administrative consent.