This repo is forked from claranet/terraform-azurerm-function-app and modified towards meeting Miljødirektoratet's needs. Main differences per December 2023 are support for private endpoints / non-public network access and removing diagnostic settings which are set up by other means.
This Terraform module creates an Azure Function App with its App Service Plan, a B1 Linux plan by default. A Storage Account and an Application Insights are required and are created if not provided. This module allows to deploy a application from a local or remote ZIP file that will be stored on the associated storage account.
You can create an Azure Function with a pre-existing plan by referencing
source = "miljodir/function-app/azurerm//modules/linux-function"
source = "miljodir/function-app/azurerm//modules/windows-function"