Azure Functions 101

Why Azure Functions?

A great example to expose the importance and how Azure functions can improve the development productivity is Logic Apps which is a part of Azure App Services.

Logic Apps are often times so flexible and comes with a list of connectors that make this workflow as a service so available but what if we need a custom logic in there,

The proper solution is to create an Api App and make sure that we have the proper swagger and that’s a time and money consuming approach, which doesn’t sound so convenient

If we are trying to format a date or just to add a business logic on top of the Logic App then Azure Functions would certainly be the perfect fit which is by definition a solution for easily running

Small piece of code in the cloud.

What are Azure Functions Features?    

Azure Functions is an event driven experience presented by Microsoft has multiple features like the flexibility of choosing the programming language and the possibility of coding the functions in the portal directly.

Main focus points for Azure Functions are Security which is a backed in module that protect HTTP-triggered functions with OAuth providers such as Azure AD, Microsoft, Google Account and the second main point is the simplified integration so the platform provides easily leverage Azure Services and SaaS offerings.

Azure Functions shall be considered as solution for various scenarios such as image or order processing, file maintenance, working with IoT. Additionally, Functions provide templates for key scenarios such as:

  • HTTP Trigger
  • Generic webhook
  • Blob Trigger
  • Timer Trigger

When it comes to integration Azure Functions integrates with various Azure and 3d party Services which can trigger the function, or serve as the Input and Output data for your code.
The following list of service integration is supported by Azure Functions:

  • Azure DocumentDB
  • Azure Event Hubs
  • Azure Mobile Apps (tables)
  • Azure Notification Hubs
  • Azure Service Bus (queues and topics)
  • Azure Storage (blob, queues, and tables)
  • GitHub (webhooks)
  • On-premises (using Service Bus)

Hand’s On

  1. To get started go to the Azure Function Portal (
  2. In the Quickstart tab, click WebHook + API and JavaScript, then click Create a function. A new predefined JavaScript function is created.TheFasterWaysToFunctions
  3. In the Develop tab, we can see the Node.js code where a “name” parameter is required. Basically, the function is returning “Hello” plus the value that we have passed either in the message body or in a query string.AzureFunctionsCodeSnippet

    Trigger the function either by clicking the Run button in the Develop overview or by copying the Function URL into a browser address bar.
  • Erstellt am .
Copyright by Orange Networks GmbH