How to Create Your First Serverless Functions on Microsoft Azure

How to Create Your First Serverless Functions on Microsoft Azure

Posted on August 18, 2020 0 Comments
How to Create Your First Serverless Functions on Microsoft Azure

Learn how easy it is to create a serverless function in Microsoft Azure.

On the Progress Corticon team, we love serverless technologies. This blog is the second in a series on serverless. If you are interested in AWS Lambda functions you can get started with this post on creating your first serverless/Lambda functions..

My First Azure Functions

Login to AWS console at URL: https://portal.azure.com/#home

Once logged in you should see something like this:

login

Click on “more services” (or you could search for “function app” service). You will see the Featured services. Click on “function app” in screen below (If you do not see it, click on “all services”).

Function App

Now, you first need to create a “function app,” a container for a set of Azure functions.

Function App

So, click on add. You will get to this screen. This is where you select which runtime you want to use (like .Net, Java, etc…). We selected Node.js as we want to run JavaScript.

Function App Details

Next, you will get to the hosting tab: you will get a chance to specify if you want to run on Windows or Linux. On the monitoring tab, you can specify if you want to have app insight monitoring. Finally, on the tag tab, you can specify name/value pairs to categorize your resource usages. Leave these blank for now.

When you have entered all the data, simply click review and create and confirm the function app creation.

You will see a message saying, “Your deployment is underway.” Give it a few minutes.  Eventually, you will see:

complete

Click on Go to resource in next step:

resource

You will get to this screen:

summary screen

Click on functions in the left panel. You will get to:

Add functions

Click on + add icon to create your first function.

Select “HTTP trigger” template and then fill up the dialog like this:

http trigger

When the function is created, click on “code + test” in the screen below:

FirstFunction

You will get to the screen below where you will be able to enter a payload to test your function (See the body panel highlighted in yellow at bottom right:

code and test

Click run at the bottom right.

You will get:

response

 

Now click on “get function URL” and invoke this Azure function from Postman.

getting URL to test in postman

 

Congratulations, you have now run your first Azure function.

In a future post we will look at how to integrate a Corticon.js decision service in an AWS Workflow (step functions).  Stay tuned :)

Learn more about Corticon.js

Thierry Ciot

Thierry Ciot

Thierry Ciot is a Software Architect on the Corticon Business Rule Management System. Ciot has gained broad experience in the development of products ranging from development tools to production monitoring systems. He is now focusing on bringing Business Rule Management to Javascript and in particular to the serverless world where Corticon will shine. He holds two patents in the memory management space.

Comments

Comments are disabled in preview mode.
Topics

Sitefinity Training and Certification Now Available.

Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.

Learn More
Latest Stories
in Your Inbox

Subscribe to get all the news, info and tutorials you need to build better business apps and sites

Loading animation