- Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud.
- Triggers are ways to start execution of your code and bindings are ways to simplify coding for input and output data.
- You pay only for the time spent running your code.
- Functions supports NuGet and NPM.
- It supports integrated security by ****protecting HTTP-triggered functions with OAuth providers such as ADD, Facebook, Google, Twitter, and Microsoft Account.
- Functions is a great solution for processing data, integrating systems, working with the internet-of-things (IoT), and building simple APIs and microservices.
Common Templates
- HTTP Trigger: Trigger the execution of your code by using an HTTP request.
- Timer Trigger: Execute cleanup or other batch tasks on a predefined schedule.
- GitHub Webhook: Respond to events that occur in your GitHub repositories.
- Generic Webhook: Process webhook HTTP requests from any service that supports webhooks.
- Cosmos DB Trigger: Process Azure Cosmos DB documents when they are added or updated in collections in a NoSQL database.
- Blob Trigger: Process Azure Storage blobs when they are added to containers.
- You might use this function for image resizing.
- Queue Trigger: Respond to messages as they arrive in an Azure Storage queue.
- Event Hub Trigger: Respond to events delivered to an Azure Event Hub.
- Particularly useful in application instrumentation, user experience or workflow processing, and Internet of Things (IoT) scenarios.
- Service Bus Queue Trigger: Connect your code to other Azure services or on-premises services by listening to message queues.
- Service Bus Topic Trigger: Connect your code to other Azure services or on-premises services by subscribing to topics.
- It is an extension of Azure Functions and Azure WebJobs that lets you write stateful functions in a serverless environment.