Azure Functions

ð What is Azure Function?

Azure Function is a platform provided by Microsoft Azure that allows developers to write and deploy code without worrying about managing servers. With Azure Functions, you can write code in your preferred programming language and have it automatically run in response to events like HTTP requests, database changes, or timer triggers. This serverless approach enables developers to focus on writing code rather than managing infrastructure.

Azure Functions provides native support for developing in C#, Java, JavaScript, PowerShell, Python, plus the ability to use more languages.

There are several ways a user can create functions in Azure, depending on their preferred tools and the type of function they want to create.

Using Azure Portal

Using Visual Studio

Using Visual Studio Code

Using Azure CLI (Command Line Interface)


ð How Do You Call Azure Function?

Azure Function can be called when triggered by the events from other services. Being event driven, the application platform has capabilities to implement code triggered by events occurring in any third-party service or on-premises system. Below are the Common triggers in Azure Functions:


 ·  HTTPTrigger– Trigger the execution of your code by using an HTTP
request.

This trigger is commonly used for building APIs, webhooks, or handling HTTP-based events.

HTTP triggers can be configured to respond to different HTTP methods (GET, POST, PUT, DELETE, etc.) and route parameters.

·  TimerTrigger – Execute clean up or other batch tasks on a predefined
 schedule.

This trigger is useful for tasks that need to be performed at regular intervals, such as periodic data processing, cleanup jobs, sending reports, etc.

You specify a cron expression or a simple schedule for the Timer trigger, defining when the function should be invoked.

 

 

 

ð Different Types of cost in Azure Function

Azure Functions are not entirely free to use. Azure charges for each execution trigger, meaning whenever your function is invoked by an event, there is a cost associated with it. Here I will explain some type of cost information of Azure function.

Execution Triggers

Execution Time

Memory Consumption

Concurrency

Regional Availability

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *