An introduction to Azure Functions

Azure Functions allows you to run small pieces of code (called "functions") without worrying about application infrastructure. With Azure Functions, the cloud infrastructure provides all the up-to-date servers you need to keep your application running at scale.

A function is "triggered" by a specific type of event. Supported triggers include responding to changes in data, responding to messages, running on a schedule, or as the result of an HTTP request.

Although you can always code directly against myriad services, integrating with other services is streamlined by using bindings. Bindings give you declarative access to a wide variety of Azure and third-party services.


Some key features of Azure Functions include:

  • Serverless applications: Functions allow you to develop serverless applications on Microsoft Azure.

  • Choice of language: Write functions using your choice of C#, Java, JavaScript, Python, and PowerShell.

  • Pay-per-use pricing model: Pay only for the time spent running your code. See the Consumption hosting plan option in the pricing section.

  • Bring your own dependencies: Functions supports NuGet and NPM, giving you access to your favorite libraries.

  • Integrated security: Protect HTTP-triggered functions with OAuth providers such as Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account.

  • Simplified integration: Easily integrate with Azure services and software-as-a-service (SaaS) offerings.

  • Flexible development: Set up continuous integration and deploy your code through GitHub, Azure DevOps Services, and other supported development tools.

  • Stateful serverless architecture: Orchestrate serverless applications with Durable Functions.

  • Open-source: The Functions runtime is open-source and available on GitHub.

What can I do with Functions?

Functions is a great solution for processing bulk data, integrating systems, working with the internet-of-things (IoT), and building simple APIs and micro-services.

A series of templates is available to get you started with key scenarios including:

How much does Functions cost?

Azure Functions has three kinds of pricing plans. Choose the one that best fits your needs:

  • Consumption plan: Azure provides all of the necessary computational resources. You don't have to worry about resource management, and only pay for the time that your code runs.

  • Premium plan: You specify a number of pre-warmed instances that are always online and ready to immediately respond. When your function runs, Azure provides any additional computational resources that are needed. You pay for the pre-warmed instances running continuously and any additional instances you use as Azure scales your app in and out.

  • App Service plan: Run your functions just like your web apps. If you use App Service for your other applications, your functions can run on the same plan at no additional cost.

For more information about hosting plans, see Azure Functions hosting plan comparison. Full pricing details are available on the Functions Pricing page.

Next Steps