Create A Function APP (using a Webhook) Via Azure Portal
Tags: learning, azure, serverless, developer
Published: 2023-12-13 08:19:27


_Do you want to create a Function App ?_

_Let's create one together._



## **What is Azure Function ?**



Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs. Instead of worrying about deploying and maintaining servers, the cloud infrastructure provides all the up-to-date resources needed to keep your applications running.

It is a serverless compute service offered by Microsoft Azure that allows you to run event-triggered code without having to explicitly provision or manage infrastructure. 



## **What is Azure Function APP ?**



Azure Function Apps are the containers for your functions








 

## **Here are the basic steps to create a  function App**








**Step 1:**

On the home page of the portal , search for function app and click on 'create'


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9oei3cv9icde3spd1l72.png)










**Step 2:**

Create using the following details;


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wez5sb3nr51peiv7jyn2.png)


 
**Make sure to create a "Function App name"**.

**Then - REVIEW AND CREATE**





**Step 3:**

Give it sometime to deploy (wait few mins)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3ukbdpjrycub96plf5t.png)





**Step 4:**

Deployment is Complete. Now click on **"Go to resource"**



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0lcdynlrqno2ls3cn3jk.png)






**Step 5:**

Click on **create in Azure portal**



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/62f1peag9taeeh5fcj0v.png)




**Step 6:**

Proceed to create a function . Make sure to choose a template - Use **"HTPP TRIGGER"**



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nonh8ipheurm0imo0pt3.png)





**Step 7:**

Now fill in the - **Template details**

You can make use of the default 'new function'

Authorization Level - Make use of function.

_Selecting the right **authorization level** depends on how much security you want. If you really care about security and want detailed control over who can do what, then go for **function-level** permission. On the other hand, if you just want things to be easy for users without making them log in, you might choose anonymous Level._



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jddrsmjc0otjavjbyiwz.png)







**Step 8:**

In the left menu of the newly created HTTP trigger function, click on **Code + Test**, and then choose **Get function URL** from the top menu. To copy it, click the copy icon that appears on the right side of the page.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xre2082txtwkblo4bj8g.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zwb9dvbhs0arc1s0hop2.png)






**Step 9:**

Paste the copied URL into your browser's address bar. Add the query string _?name=<your name>_ to the end of the URL and press enter to make the request. If you selected function as the authorization level, append the string _&&name=<your name>_ at the end of the URL in the browser's address bar. The result will show your name on the screen. As shown below;



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/orj9idzlp8qj74wf5jrf.png)





**Step 10:**

Whenever the trigger function runs, it will be logged, as depicted in the image below.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bp1tkl4lk7xxc5nlvbe3.png)
















_**Well done mate 👌 You have successfully created a Function App Function.**_
























![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6kedp16uwevmpq7sb1lz.jpg)