[Progress News] [Progress OpenEdge ABL] How to Create Your First Serverless Functions on Microsoft Azure

Status
Not open for further replies.
T

Thierry Ciot

Guest
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: Microsoft Azure

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

Continue reading...
 
Status
Not open for further replies.
Top