Azure Functions

Build and run event-driven, serverless applications on Azure.

What are Azure Functions?

Azure Functions is a serverless compute service that lets you run code on-demand without explicitly provisioning or managing infrastructure. It's a powerful way to build event-driven applications and microservices. Scale automatically with the cloud or host remotely in a hybrid cloud scenario.

Key benefits include:

Key Features

Event Triggers

Execute functions in response to a variety of event sources, such as HTTP requests, timers, Azure Blob Storage, Azure Cosmos DB, and message queues.

Learn More

Language Support

Develop your functions in your preferred language, including .NET, Node.js, Python, Java, PowerShell, and more.

Explore Languages

Bindings

Declarative model for connecting to data and services without writing boilerplate integration code.

Discover Bindings

Durable Functions

Extend Azure Functions with workflows, stateful orchestration, and reliably execute long-running or stateful tasks.

See Orchestration

Integrated Tooling

Develop, debug, and deploy functions easily with Visual Studio, VS Code, Azure CLI, and the Azure portal.

Get Tools

Serverless Hosting

Deploy and run your functions on Azure's scalable, managed infrastructure, or on your own servers.

Deployment Options

Getting Started Example

Here's a simple HTTP triggered function written in JavaScript:

// index.js module.exports = async function (context, req) { context.log('JavaScript HTTP trigger function processed a request.'); const name = (req.query.name || (req.body && req.body.name)); const responseMessage = name ? "Hello, " + name + ". This HTTP triggered function executed successfully." : "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response."; context.res = { status: 200, body: responseMessage }; };

This function responds to HTTP requests. When a request comes in, it checks for a 'name' parameter in the query string or request body and returns a personalized greeting.

Deploy Your First Function