What is Azure Functions
|
|
Azure functions is a logical unit of code that lets you execute your code in a server less environment without worrying about application infrastructure. It provides updated infrastructure and your application runs at a scale automatically whenever there is a load.
You can develop your function code using C#, Java, JavaScript, Powershell, and Python languages of your choice. Package managers like Nuget and NPM are supported so you can use popular libraries in your application logic.
Azure functions are surrounded by triggers and bindings. A function is triggered by a specific type of event.
Once the functions are developed and deployed to azure, then you can pay per use pricing model. The plans will be App Service Plan, Consumption Plan, and Premium plans.
|
|
|
|
|
|
Who should be using Azure functions?
|
|
- Azure functions provide ready-to-code environments and easy-to-code programming models as a Serverless solution.
- It helps developers to focus on coding and delivering key value to your organization without the need to set up servers and maintain infrastructure by themselves.
- If you are a .NET developer, you want to get started on .NET programming while taking advantage of cloud-based highly scalable, on-demand resources needed to run your applications, Azure functions are a way to go.
- Azure functions focus on event-driven scenarios, and it simplified the integration with many Azure services like Event Grid, and cosmos DB and with a broader range of events and bindings which allows one to connect other azure services with ease declaration.
- Supports the latest version of. NET. Always azure functions team works with the latest .NET features from the preview mode.
Start building apps with Azure functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
What are the features of Azure functions?
|
|
Below are the few features of Azure functions - Server-less - Focus more on building your apps faster to add business value without managing infrastructure.
- Language of your choice - You can develop your function code using C#, Java, JavaScript, Powershell and Python languages of your choice.
- Custom development - you can bring your own dependencies using Nuget and NPM to extend your application logic.
- Continuous Integration and Deployment - you can set up your function code with continuous integration and deployment using GitHub, Azure DevOps, bitbucket and other CI/CD processes.
- Built-in Security - Protect your functions with SSL Bindings, VNet integration and OAuth providers. Authenticate users with the OAuth standard from providers such as Active Directory, Facebook, Twitter, Google, and Microsoft Account.
- Scale on demand - Automatically scale out whenever there is a need by adding compute power and scale in when the code is stopped running.
- Optimized Pricing - Pay only when your app runs.
- Performance and Monitoring - Easily configure Azure App Insight to your App for monitoring and analyzing the app performance.
- Connect to Other Services - Use triggers and bindings that enable your server-less applications to respond to events and connect to other services seamlessly.
- Choice of hosting plan - Based on your need, you can opt for Consumption, Premium or App Service Plan.
|
|
|
Are Azure functions free?
|
|
Yes, Azure functions provide free grants(1 million requests and 4,00,000 GB-s of resource) which applies to paid, consumption subscriptions only per month.
Once the Azure functions are developed and deployed to azure, then you can pay per use pricing model. While creating azure function, you must choose a hosting plan for your app. There are 3 types of pricing plans. - Consumption Plan - is billed based on per-second resource consumption and executions.
- Dedicate(App Service) Plan - Runs like your web apps. If the app service plan is shared between your applications and functions there is no additional cost for functions run.
- Premium Plan - It contains Pre-warmed instances that are always readily available to respond immediately. Also, it contains VNET connectivity for security. In this plan, you pay for Pre-warmed instances and any additional instance which you use to scale your app in and out.
Consumption and Premium plan automatically scale out whenever there is a need by adding compute power and scale in when the code is stopped running. Also, both plans provide a monthly free grant of 1 million requests and 4,00,000 GB-s of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription.
In the App Service plan, your app does not scale automatically. Also, you must enable Always on setting so that your function app runs correctly.
Note: A storage account is created by default with each Functions app. The storage account is not included in the free grant.
|
|
|
|
|
|