- By web-hooks
- By scheduling
- By specific trigger
- From storage
- Form services
- Go to azure Marketplace
- Search Function App
- Create
- Choose Subscription, Resource Group(Create new or Existing)
- Chose Hosting Plan
- Dynamic: Independent billing/uses/monitoring or
- App Service Plan: Your existing service plan
- Create
- New Function
- Choose a template - HttpTrigger-Csharp
- Name you function
- Choose Authorization level - Anonymous
- Create
- Change Code in to run.csx
- Take you Function URL
- Check your Function URL in any tools like Postman
- Verify Azure Log
Supplements
Azure function is
same as Google Cloud function, Amazon lambda and auth0webtask.io.
What is Azure Function?
Is server-less
architecture, server-less means not without server :-). Its means that we do
not worry about servers and infra
We can say is Nano
services
Being call
Separate system into two flow:
1:
Command that point to a service (it alter the state)
2:
Query that provide response from service
Is it cost effective?
We only pay for
what we consume through services.
Can develop into any language
C#,
Python, Java, JavaScript
We can set binding
and output for it.
Where to use?:
Background
application that can process data based on storage, IO, http trigger like
creating pdf and sending email once to all pending user once in a day. Process
image and
copy in 4 different dimension just after uploading a profile pic
etc.
How to create?