Azure Functions
- Azure Functions allows us to run a piece of code referred as functions.
- The key differnce between Azure Functions Consumption tier vs other compute is they will be charged per second only when code is running
- Bindings uses Azure Functions for connecting your function with external world.
- Azure function can have mix of input and output bindings
- Triggers are the events that cause function to start its execution
- Azure functions can be implemented in
- C#
- Java
- Python
- Java Script
- Azure functions supported bindings Refer Here
Scenario
-
Lets realize the following
-
Create a vm for admin image defintion with size B1s
- install apache server
sudo apt update && sudo apt install apache2 -y
- navigate to /var/www/html
- clone the code from Refer Here
- rename the folder to admin
- checkout the brach to admin
- Now navigate to http://
/admin/index.html
- Now create the image definition admin
- install apache server
- Create a vm for catalog image defintion with size B1s
- install apache server
sudo apt update && sudo apt install apache2 -y
- navigate to /var/www/html
- clone the code from Refer Here
- rename the folder to product
- Now navigate to http://
/product/index.html
- Now create the image definition product
- install apache server