Azure Function App Hosted on Linux Consumption Plan
This sample Azure Resource Manager template deploys an Azure Function App on Linux Consumption plan and required resource including the app setting to deploy using zip package.
OS
This template is for Azure Function app hosted on Linux Consumption plan only.
Comsumption Plan
The Azure Function app provisioned in this sample uses an Azure Functions Consumption plan.
- Microsoft.Web/serverfarms: The Azure Functions Consumption plan (a.k.a. Dynamic plan)
Azure Function App
The Function App uses the AzureWebJobsStorage app settings to connect to a Storage Account.
- Microsoft.Web/sites: The function app instance.
Deploy using .ZIP package
ZipDeploy extension with the appSetting WEBSITE_RUN_FROM_PACKAGE=1
is not supported only for Linux Consumption plan. For Linux Consumption plan:
- Do not use ZipDeploy extension.
- Set appSetting
WEBSITE_RUN_FROM_PACKAGE=URL
for deployment using the .zip package url.
Azure Storage account
The Storage account that the Function uses for operation and for file contents.
- Microsoft.Storage/storageAccounts: Azure Functions requires a storage account for the function app instance.
Application Insights
Application Insights is used to provide monitor the Azure Function.
- Microsoft.Insights/components: The Application Insights instance used by the Azure Function for monitoring.
Tags: Microsoft.Storage/storageAccounts, microsoft.insights/components, Microsoft.Web/serverfarms, Microsoft.Web/sites