What is an Azure Function?
Azure function is an event-driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in Azure or third party service as well as on-premises systems.
What is Routing?
Routing is a way using which HTTP requests are mapped to the code that handles them.
In this video, We are going to create a azure function using visual studio 2019. Then play around with azure function, configuring the route.
We'll be discussing the following things as mentioned below:
- Modifying the default route by changing the function name
- Modifying the function route using Route attribute
- Pass a value as a parameter in the function route
- Make the value passed as a parameter in the function route optional in the function route
- Specify the value type you want to pass as a value in the function route
- Modify the RoutePrefix of your azure function
- Deploy the Azure function to Azure and Test it.
URL - https://routingdemoazurerouting.azurewebsites.net/AshirwadAPI/Hello/int-value?name=your-name
You can test the azure function created in the video using the above mentioned URL.