Introduction To Serverless Computing Utilizing Azure Operate

Serverless Computing

  • Serverless Computing is pushed by performing some motion as a response to a selected occasion or set off.
  • Whereas constructing serverless apps you don’t must provision server or infrastructure.
  • Billing is predicated on sources consumed or precise time code is working.
  • No must construct the app to run the code, no must arrange infrastructure, no must arrange deployment infrastructure. Simply deal with code.

Azure Operate

  • Azure Operate is a small piece of code that will get executed when some occasion happens.
  • Simply deal with code with out worrying in regards to the software and infrastructure to run it.
  • That is additionally known as “function-as-a-service”
  • You may select your favourite language to jot down Azure Operate, reminiscent of C#, F#, Node.js, Java, or PHP.
  • Azure operate lets you construct totally serverless functions

When to Use Azure Capabilities

  • Azure Capabilities could be a nice resolution whereas constructing small microservices or constructing easy APIs.
  • This may be useful in eventualities like order processing, picture processing, logging, file processing, and so forth.
  • It’s also possible to carry out scheduling or batch processing duties utilizing Azure Capabilities.

Azure Operate Set off Templates


Azure Capabilities present templates for key eventualities.

  • HTTPTrigger – Triggers some code when HTTP request obtained.
  • TimerTrigger – Performs a scheduled process like useful resource clean-up actions.
  • GitHub Webhook – Performs an motion when one thing occurred to the GitHub repository.
  • Generic Webhook – Processes HTTP requests from companies that assist webhooks.
  • CosmosDBTrigger – Processes Cosmos DB paperwork after they get added or up to date.
  • BlobTrigger – Processes Azure Blobs after they get added to containers.
  • QueueTrigger – Responds messages after they get added to Storage Queue
  • EventHubTrigger – Responds to Occasion Hub occasions
  • ServiceBusQueueTrigger – Responds to message when get added in Azure Service bus queue
  • ServiceBusTopicTrigger – Subscribes to Service Bus matters and reply to topical occasions.

Azure Operate Apps

  • Operate apps are containers of Azure Operate.
  • All Capabilities serving the identical enterprise worth could be grouped collectively below a single Operate App.

Create Your First Azure Operate App

  • Login to Azure Portal and click on “New”.
  • Within the search textual content field, write “Operate App”.



  • Give a singular identify to the Operate app, choose Subscription, Useful resource Group, and OS.
  • Choose Internet hosting Plan


    • Consumption Plan – When the operate runs, Azure units up all mandatory sources for you and also you pay for the time that your code runs.
    • App Service Plan – Run Azure Operate as part of already present App Service with no further value.


      Azure Function


  • As soon as the app will get created, you’ll be able to view the newly created app below Operate apps.


    Azure Function


Creating First Azure Operate

  • Click on on the Capabilities tab accessible below Operate App.
  • Click on on “New Operate”.


    Azure Function
  • Choose HTTP Set off Template.


    Azure Function


  • Choose language as C# and provides some identify to the Operate and click on “Create”.
    Azure Function


Check Operate Utilizing Portal

  • You may check the newly created operate utilizing Azure Portal.
  • Click on on the “Check” tab accessible on the right-hand aspect of the portal.


    Azure Function


  • Click on on “Run”.


    Azure Function


  • Observe the “Output”.


    Azure Function


Check Operate utilizing Postman


You may check the Azure operate utilizing Postman.

  • On Azure Portal, click on on the ‘Get operate URL’ possibility.


    Azure Function


  • Copy the URL. 


    Azure Function


  • Open Postman software.
  • Paste the URL and set the HTTP methodology as POST.
  • Click on the “Physique” tab and choose the uncooked possibility.
  • Choose “Physique Kind” as software/JSON.
  • Add the next physique.
    1. {  
    2.    “identify”:“Mangesh”  
    3. }  
  • Click on on “Ship”.


    Azure Function


  • Observe the output.


    Azure Function

Watch right here a full video to be taught extra about Serverless Computing.


Show More

Related Articles

Leave a Reply

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

Back to top button