HOW TO CREATE AZURE FUNCTIONS APP
Tags: azure, programming, cloudcomputing, beginners
Published: 2023-11-24 16:23:58

## What is Azure Functions?
Azure Functions is a platform for serverless applications. It lets developers host executable business logic without the need to provision infrastructure. Azure Functions offers inherent scalability, with pricing based solely on the utilization of resources. The language you choose to create your function code in can be C#, Java, JavaScript, Python, or PowerShell. In order to include well-known libraries into your business logic, support for package managers such as NuGet and npm is also provided.

## Steps involved in creating function app
- Click create resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tbh2ok6fvy6xqj5n3ixn.png)
- Search for function app in the market place
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lwstaswkmqviwzzejp5y.png)
- Select the function app and click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rdn8tynu5d33pf1f6nu.png)
-Fill in the project details which include subscription and resource group
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e9p4vrg2d594e2doj4ar.png)
- In the instance details, only select .Net in the runtime stack
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ud7rk824zgo67rwkq1ow.png)
- Leave the operating system on default as Windows
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1960fm7m7l3lipaamfcx.png)
- Leave the hosting as default also
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kefx6uk5q05qocuj02s.png)
- Click Review + create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ckt60ytkujfw6q6ae5x.png)
- Click create after passing validation
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25l06gtfsve3ob0twoev.png)
- Wait for it to deploy
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/op1c5gut12r2i65iy45f.png)
- Once deployment is complete select go to resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iivnvtf5fihnc1ux88th.png)
- This will take you to function overview page
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1zhobgyqxhvpar98t6i5.png)
- Under function select create in azure portal to create a function
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iusbhqdqnznexaea3mu0.png)
- Select HTTP Trigger under Templates; this means that the function will be tested over browser
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0r0pk45zywiytq19r3bb.png)
- Click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmb4uxcbo3v8brlp3zf3.png)
- After successfully creating a function
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tty10qnjnqwxhpy2bqna.png)
- Select get url
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ojd93ey18trsvpi52bv.png)
- Copy the url
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q3pqj7zzuol8xqdm4xy3.png)
- Open a new browser, paste the copied url and search
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9c95s2oraktm0syn23jx.png)
- To pass a name in the query string, add &name=Olalekan at the end of the copied url. Note that Olalekan can be any name.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r6yuv9m7vpu8qllmwccn.png)

You can also test your function app by running the following code on CLI pane: curl "copied url"
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lk191zrcpaa4chvjnnnm.png) 
It will ask you to pass a name in the query string and you do so by adding &name=Olalekan to the copied url just like the previous method.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdxm27gqltipsu784hdt.png)