{"id":10846,"date":"2022-01-20T13:09:58","date_gmt":"2022-01-20T13:09:58","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=10846"},"modified":"2022-01-21T11:38:41","modified_gmt":"2022-01-21T11:38:41","slug":"azure-function","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/azure-function\/","title":{"rendered":"Azure Function: A serverless computing platform"},"content":{"rendered":"\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/01\/azure-function.png\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"200\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/01\/azure-function.png\" alt=\"\" class=\"wp-image-10887\"\/><\/a><\/figure><\/div>\n\n\n\n<p>What if you could write your code and have it run in reaction to events or on a schedule, rather than having to develop and manage a full application or the infrastructure to perform it? <\/p>\n\n\n\n<p>Azure Functions is a &#8220;serverless&#8221; service that enables you to write only the code you need. <\/p>\n\n\n\n<p>To execute code with functions, you can use HTTP requests, webhooks, cloud service events, and a schedule. You can use whatever programming language you choose. With consumption-based payment, you only pay for the time your code runs and Azure scales to meet your demands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Azure Function<\/h2>\n\n\n\n<p>Azure Function is a serverless computed solution that enables customers to run event-triggered code without having to manage or deploy infrastructure. It runs a script or code in response to a range of events as a trigger-based service.<\/p>\n\n\n\n<p>Decoupling, high throughput, and reusability may all be done with Azure Functions. We can also use it in production environments because it is more dependable.<\/p>\n\n\n\n<p>Function App allows you to create standalone functions in the Azure function. Using the configured trigger, any function can be called. The Azure portal allows you to create, manage, monitor, and integrate Azure Function inputs and outputs.<\/p>\n\n\n\n<p>For monitoring, the portal offers tools like Application Insights, which allow for real-time state monitoring via invocation logs. The Function App&#8217;s app metrics can track the functions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How does it work?<\/h2>\n\n\n\n<p>The Azure Function allows teams to construct event-driven apps that run code in response to system conditions or events. The platform automatically manages all the computing resources required for those operations, allowing DevOps teams to concentrate on developing and delivering features and capabilities.<\/p>\n\n\n\n<p>Azure Functions also allow teams to run custom-written code in JavaScript, C#, Python, or PHP in a containerized environment to connect various services as needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of Azure function<\/h2>\n\n\n\n<p><strong><span style=\"color:#780311\" class=\"has-inline-color\">Multiple language support<\/span>:<\/strong> Create functions in C#, Java, JavaScript, PowerShell, or Python, or create a custom handler to use any language.<\/p>\n\n\n\n<p><strong><span style=\"color:#780311\" class=\"has-inline-color\">Simple Integration<\/span>: <\/strong>Azure Functions are simple to integrate with other Azure Services without any problem.<\/p>\n\n\n\n<p><strong><span style=\"color:#780311\" class=\"has-inline-color\">Pay only for what you use<\/span>:<\/strong> You can use Azure Functions on a pay-as-you-go basis. The user is only charged for the services that they use. The amount of monthly executions determines the pricing of Azure services. For the <strong><a href=\"https:\/\/azure.microsoft.com\/en-in\/pricing\/details\/functions\/\">price<\/a>,<\/strong> simply click on the link.<\/p>\n\n\n\n<p><strong><span style=\"color:#780311\" class=\"has-inline-color\">Executions based on a trigger<\/span>:<\/strong> The triggers that have been set up are used to run Azure Functions. Triggers such as HTTP, Queue, and Event Hub Triggers, as well as others, are supported. Because it is a trigger-based service, it runs on demand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Azure Function&#8217;s supported languages<\/h2>\n\n\n\n<p>Azure Function, which is based on Runtime versions, supports a variety of languages.<\/p>\n\n\n\n<ul><li>C#, F#, and JavaScript are all supported in Azure Functions 1.x. Functions 1.x, on the other hand, is solely in maintenance mode.<\/li><li>C# (.NET Core 2.2), JavaScript (Node 8 &amp; 10), F# (.NET Core 2.2), Java 8, PowerShell Core 6, Python 3.7.x, and Typescript are supported by Azure Functions 2.x.<\/li><li>C# (.NET Core 3.x), JavaScript (Node 8 &amp; 10), F# (.NET Core 3.x), Java (Java 8), PowerShell Core 6, Python 3.7.x, and TypeScript are supported in Azure Functions 3.x (Preview).<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Creation of Azure Function App<\/h2>\n\n\n\n<p>We can create azure Function in one of two ways: via the Azure portal or via Visual Studio. The following are the steps for creating and deploying Azure Functions:<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><span style=\"color:#175804\" class=\"has-inline-color\">Through Azure portal<\/span><\/h5>\n\n\n\n<ul><li>Click Create a resource, then select Azure Functions App from the Compute section and click Create.<\/li><li>Create it after you&#8217;ve provided all of the necessary information.<\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\"><span style=\"color:#175804\" class=\"has-inline-color\">Through Visual Studio<\/span><\/h5>\n\n\n\n<ul><li>Choose File -&gt; New Project. Choose the Azure Functions project.<\/li><li>Name, path, Function App version, and Trigger option should all be provided. Click Create.<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#4d0341\" class=\"has-inline-color\">To publish Azure Functions from Visual Studio, follow these steps<\/span>:<\/strong><\/p>\n\n\n\n<ul><li>Select Publish with a right-click on the project name.<\/li><li>Provide information such as the name of the resource group, the storage account, and so on. After this, the profile will be ready to publish.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Pricing<\/h2>\n\n\n\n<p>The price of an Azure Function App is determined by the execution time and the total number of executions. It also provides a free monthly grant of 1 million requests and monthly resource consumption of 4,00,000 GB-s.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-stripes\"><table><thead><tr><th>Meter<\/th><th>Price<\/th><th>Free Grant (Per Month)<\/th><\/tr><\/thead><tbody><tr><td>Execution Time<sup>*<\/sup><\/td><td>$0.000016\/GB-s<\/td><td>4,00,000 GB-s<\/td><\/tr><tr><td>Total Executions<sup>*<\/sup><\/td><td>$0.20&nbsp;per million executions<\/td><td>1 million executions<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Users can enjoy better performance with the Azure Function Premium package. It is priced in terms of virtual CPUs and gigabytes.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-stripes\"><table><thead><tr><th>Meter<\/th><th>Price<\/th><\/tr><\/thead><tbody><tr><td>vCPU duration<\/td><td>vCPU:&nbsp;$0.173&nbsp;vCPU\/hour<\/td><\/tr><tr><td>Memory duration<\/td><td>Memory:&nbsp;$0.0123&nbsp;GB\/hour<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>To know more about the <strong><a href=\"https:\/\/azure.microsoft.com\/en-in\/pricing\/details\/functions\/\">price<\/a>,<\/strong> simply click on the link.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>As a result, Azure Functions, like AWS Lambda, operate at the cloud&#8217;s edge and are ideal for small apps that can function independently. Therefore, it enables businesses to create dynamic serverless apps based on functions that run at the cloud&#8217;s edge without worrying about infrastructure. This frees up teams to concentrate on developing smooth, efficient apps that improve end-user experience and business outcomes.<\/p>\n\n\n\n<p>I hope this blog clarified all of the key concepts surrounding Azure Functions.<\/p>\n\n\n\n<p><strong>In case of any help or query, please&nbsp;<a href=\"https:\/\/cloudkul.com\/contact\/\">contact<\/a>&nbsp;us&nbsp;or raise a&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What if you could write your code and have it run in reaction to events <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/azure-function\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[679],"tags":[310,680,3,178,681,682],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Azure Function: A serverless computing platform - Cloudkul<\/title>\n<meta name=\"description\" content=\"Azure Function is a &quot;serverless&quot; service that enables you to write only the code you need. This improves the end-user experience and business outcomes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/azure-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure Function: A serverless computing platform - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Azure Function is a &quot;serverless&quot; service that enables you to write only the code you need. This improves the end-user experience and business outcomes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/azure-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-20T13:09:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-21T11:38:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/01\/azure-function.png\" \/>\n<meta name=\"author\" content=\"Bhawana Dehran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/azure-function\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/azure-function\/\",\"name\":\"Azure Function: A serverless computing platform - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2022-01-20T13:09:58+00:00\",\"dateModified\":\"2022-01-21T11:38:41+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62\"},\"description\":\"Azure Function is a \\\"serverless\\\" service that enables you to write only the code you need. This improves the end-user experience and business outcomes.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/azure-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/azure-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/azure-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Azure Function: A serverless computing platform\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62\",\"name\":\"Bhawana Dehran\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Bhawana Dehran\"},\"description\":\"Business Development Executive\",\"url\":\"https:\/\/cloudkul.com\/blog\/author\/bhawanadehran-bd033\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure Function: A serverless computing platform - Cloudkul","description":"Azure Function is a \"serverless\" service that enables you to write only the code you need. This improves the end-user experience and business outcomes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/azure-function\/","og_locale":"en_US","og_type":"article","og_title":"Azure Function: A serverless computing platform - Cloudkul","og_description":"Azure Function is a \"serverless\" service that enables you to write only the code you need. This improves the end-user experience and business outcomes.","og_url":"https:\/\/cloudkul.com\/blog\/azure-function\/","og_site_name":"Cloudkul","article_published_time":"2022-01-20T13:09:58+00:00","article_modified_time":"2022-01-21T11:38:41+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/01\/azure-function.png"}],"author":"Bhawana Dehran","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/azure-function\/","url":"https:\/\/cloudkul.com\/blog\/azure-function\/","name":"Azure Function: A serverless computing platform - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2022-01-20T13:09:58+00:00","dateModified":"2022-01-21T11:38:41+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62"},"description":"Azure Function is a \"serverless\" service that enables you to write only the code you need. This improves the end-user experience and business outcomes.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/azure-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/azure-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/azure-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Azure Function: A serverless computing platform"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62","name":"Bhawana Dehran","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Bhawana Dehran"},"description":"Business Development Executive","url":"https:\/\/cloudkul.com\/blog\/author\/bhawanadehran-bd033\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/10846"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=10846"}],"version-history":[{"count":11,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/10846\/revisions"}],"predecessor-version":[{"id":10894,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/10846\/revisions\/10894"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=10846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=10846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=10846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}