Azure Functions

Process events with a serverless code architecture

An event-based serverless compute experience to accelerate your development. Scale based on demand and pay only for the resources you consume.

Try it for free

Sign in to your account

Create your free account

Manage your apps instead of infrastructure

Focus on building great apps. Don’t worry about provisioning and maintaining servers, especially when your workload grows. Functions provides a fully managed compute platform with high reliability and security. With scale on demand, you get the resources you need—when you need them.

Develop your way

Create Functions in several languages, including JavaScript, C#, F#, as well as scripting options such as Python, PHP, Bash, Batch and PowerShell – and do it all in an easy-to-use web-based interface. Or upload and trigger pre-compiled code built with your favourite development tool.

Bind into services

Build rich, serverless scenarios by capitalizing on a range of Azure and external services. Easily interact with Azure Cosmos DB, Storage, and more, and external services including Twilio, SendGrid, and others—by adding input/output bindings to Functions. Save costs with less code to maintain.

Customers executing serverless code with Azure Functions

Common scenarios for Azure Functions

Timer-based processing

Azure Functions supports an event based on a timer using Cron job syntax. For example, execute code that runs every 15 minutes and clean up a database table based on customised business logic.

Azure Functions timer-based processing

Azure service event processing

Azure Functions supports triggering an event based on an activity in an Azure service. For example, execute serverless code that reads newly discovered test log files in an Azure Blob storage container, and transform this into a row in an Azure SQL Database table.

C# Azure Function for reacting to Azure Insights Events

Azure Functions event processing

SaaS event processing

Azure Functions supports triggers based on activity in a SaaS service. For example, save a file in OneDrive, which triggers a function that uses the Microsoft Graph API to modify the spreadsheet, and creates additional charts and calculated data.

SaaS event processing and serverless code functions

Serverless web application architectures

Azure Functions can power a single-page app. The app calls functions using the WebHook URL, saves user data and decides what data to display. Or, do simple customisations, such as changing advert targeting by calling a function and passing it user profile information.

Serverless architecture in Azure Functions

Serverless mobile back ends

A mobile back end can be a set of HTTP APIs that are called from a mobile client using the WebHook URL. For example, a mobile application can capture an image, and then call an Azure Function to get an access token for uploading to blob storage. A second Azure Function is triggered by the blob upload and resizes the image to be mobile friendly.

Node.js Azure Function for generating SAS tokens C# Azure Function for generating SAS tokens

Serverless mobile back ends

Real-time stream processing

For example, Internet of Things (IoT) devices send messages to Azure Stream Analytics, which then calls an Azure Function to transform the message. This function processes the data and creates a new record in an Azure SQL database.

Real-time stream processing

Real-time bot messaging

Use Azure Functions to customise the behaviour of a bot using a WebHook. For example, create an Azure Function that processes a message using Cortana Analytics, and call this function using Microsoft Bot Framework.

Real-time bot messaging in Azure Functions

Related products and services

Logic Apps

Automate the access and use of data across clouds without writing code

Azure Cosmos DB

Try Azure Cosmos DB for a globally distributed, multi-model database

Event Grid

Get reliable event delivery at massive scale

Executing code is about to get a whole lot easier