Create Durable Function In Azure Portal

Introduction                                       

This article will help you learn how to create Durable Functions in Azure Portal.

Before reading this article, please go through some important articles mentioned below,

  1. Exploring About Azure Function
  2. Create Http Trigger Azure Function In Azure Portal
  3. Create The Timer Trigger Azure Function In Azure Portal

Azure Function

Azure Functions is a serverless computing service and is hosted on the Microsoft Azure public cloud. It is designed to accelerate and simplify application development. The cloud provider takes care of all the headaches of running the server, dynamically managing the resources of the machine, etc. It also provides auto scalability.

Serverless applications, also known as Function-as-a-Service or FaaS, is an offering from most of the enterprise cloud providers in which they allow the users to only write code, and the infrastructure behind the scenes is managed by them.

Azure Functions is the event-based serverless application framework which can automatically scale up and down based on the executions that are being triggered. This Microsoft Azure service allows you to run small pieces of code in Node.js, C#, Python, PHP, and Java without any infrastructure configurations.

Here, we will see about Azure Function.

Purpose

Azure Functions lets you execute your code in a serverless environment without having to first create a VM or publish a web application.

Key Features

  • Intuitive, browser-based user interface - You can write code in the easy-to-use web interface.
  • write code in different programming languages
  • pay per function execution
  • parallel execution when multiple triggers occur
  • Supports Continuous Deployment and Integration

Durable Function

Durable Functions is an extension of Azure Functions and lets you write stateful functions in a serverless compute environment.  Normally, We have created three functions like starter function, orchestration function, and Activity Function

Create Azure Durable Function in Azure Portal

Prerequisites

  • Microsoft Azure Account.

Follow the below steps to create an Azure Storage Account.

Step 1

Log in here. Please go through the article mentioned below for creating Azure Function.

Exploring About Azure Function

Create Azure Durable Function

Step 2

After successfully create the Azure Function services, you are land over to the overview page as shown below. Then click on Function under Function tab

Create Azure Durable Function

Step 3

Now, Click on Create option to create function trigger.

Create Azure Durable Function

Step 4

In this blade, you can able to see many triggers. Search for durable function here. 

Create Azure Durable Function

In that, choose HTTP starter durable function and set the name as starter.

Create Azure Durable Function

Now, just view code+Test for starter durable function. It starts the orchestration function

Create Azure Durable Function

Step 5

Now, we need to create orchestrator durable function. So, go to function and click on create button.

Create Azure Durable Function

In that blade, choose Durable function orchestrator and set the name as Flow1and click on create button.

Create Azure Durable Function

Now, just view code+Test for orchestration durable function.

Create Azure Durable Function

Step 6

Now, we need to create Activity durable function. So, go to function and click on create button.

Create Azure Durable Function

In that blade, choose Durable function Activity and set the name as Activity and click on create button.

Create Azure Durable Function

Now, just view code+Test for Activity durable function.

Create Azure Durable Function

Now, it looks like this.

Create Azure Durable Function

Output

Copy starter function URL and paste it in postman tool and change the function name as Flow.

Create Azure Durable Function

Now, copy the get uri and paste it in next tab and click on send. Now, we can successfully run our durable function here. The output will looks like this.

Create Azure Durable Function

Summary

I hope you understood how we can create a durable function in Azure portal. Stay tuned for more articles on Azure Function.