Setting up a basic Azure Function
Let's understand Azure Functions and create one in Azure Portal.
- Go to https://portal.azure.com. Click on
Function Apps
in the left sidebar:
![](https://static.packt-cdn.com/products/9781787122932/graphics/bf9b1358-688a-425b-9503-3a7cf8273eaa.png)
There is no Function App available as of now.
- Click on the plus
+
sign and search forFunction Apps
. Then click onCreate
:
![](https://static.packt-cdn.com/products/9781787122932/graphics/7cc5d824-c7b8-4a9e-a879-2260fba1cdb5.png)
- Provide the
App name
,Subscription
details, and existingResource Group
. SelectConsumption Plan
inHosting Plan
. Then selectLocation
:
![](https://static.packt-cdn.com/products/9781787122932/graphics/f952f8a0-7c2c-45c5-9a6a-7f3a5122fba8.png)
- Select
Create New
inStorage
and click onCreate
:
![](https://static.packt-cdn.com/products/9781787122932/graphics/9fa286f8-3192-4f7f-95db-c80e8caeed75.png)
- Now, let's go to
Function Apps
in the left sidebar and verify whether the recently created Function App is available in the list or not:
![](https://static.packt-cdn.com/products/9781787122932/graphics/5b4a6a5a-9dba-493e-818a-9d54f86cf80b.png)
- Click on the Function App and we can see the details related to the
Subscription
,Resource group
,URL
,Location
,App Service Plan / pricing tier
.
![](https://static.packt-cdn.com/products/9781787122932/graphics/ead103d8-42a0-4ba7-a2fc-33da31d73092.png)
We can stop or restart the function from the same pane.
- The
Settings
tab provides details on theRuntime version
,Application settings
, and the limit on daily usage:
![](https://static.packt-cdn.com/products/9781787122932/graphics/5771005a-8a2e-416c-98ad-a57e1952e334.png)
It also allows us to keep the Function App in Read/Write
or Read Only
mode. We can...