Working With Azure Function App

In this article I will explain about overview of Azure function app and implementation of Azure function app

Overview of Azure Functions

 
In this article I will explain about an overview and implementation of Azure Functions. Azure functions are very helpful in solving and well as executing pieces of code. The azure functions which are created will be executing in a serverless environment, which means inside the cloud environment. With the support of continuous execution of functions, we can develop many applications using it.
 
Prerequisites
  • Azure portal login credential.
Step 1
 
Login to link
 
After logging into the Azure portal, we can  see the dashboard. For creating Azure function app select-> create a resource and select->compute and then select-> Function App.
 
Working With Azure Function App
 
Step 2
 
After selecting Azure function app, we need to provide basic properties such as a name for the app, and after that we need to select the subscription & with the resource group, we can either select the existing resource group or we can create a new resource group. After that we need to select the hosting plan and the location for faster access, select the location where the app must be deployed, after that select -> Create.
 
Working With Azure Function App
 
After successful deployment, now select the created function app in the dashboard and we can see that the function app is running.
 
Working With Azure Function App
 
Step 3
 
Now here comes the next stage of creating a new function. So for that select ->New Functions to create a new function app.
 
Working With Azure Function App
 
Now, we can choose the Http trigger pre-defined option and provide the name then, select -> create.
 
Working With Azure Function App
 
Working With Azure Function App
 
In the next step we can see an editor which is predefined and preloads run.csx file. We can see predefined method that is about to fire when the API is called. Compile the code by selecting ->Run button to execute the code and the "Save" button is used to save the changes done in the code editor.
 
Working With Azure Function App
 
Step 4 - Passing user defined string inside
 
We can also pass user defined string inside the return function and you can see I have changed a string inside a return function so that when the code is compiled we can get a URL link when the code is compiled.
 
Working With Azure Function App
 
Step 5 - Compile the Function App
 
Click-> save and run button to run the code. After that Copy the URL which is provided by the function app dialog box and paste the link in the new tab so that we can view the output.
 
Working With Azure Function App
 
Output 
 
Working With Azure Function App

Summary

 
In this article we have seen an overview of Azure functions and how to create a new function app. I hope this article will be useful, thanks for reading.