This module requires Az Powershell to help with complexity in setting up Azure App Functions especially when it comes to deployment and setting up event subscription (such as webhooks). Powershell to help you add event hub subscription (webhook). It gets the masterkey and then pass it as part of a request for webhook event
This powershell module aim to help ease that process.
$resourceGroupName = "myfunctionapprg" $location = "australiaeast" $functionAppName = "testappfunction" $storageAccountName = "myappstorageaccount"
CreateFunctionApp $resourceGroupName, $location, $functionAppName, $storageAccountName
SecureFunctionapp - Typically allows us to disable remote logging and ftps.
Example
SecureFunctionapp $resourcegorupName $functionAppName
Example :-
SecureCors $resourcegorupName $functionAppName $allowOrigin
SetAppSetting allows you to update your app settings. $settings parameter is a hastable.
SetAppSetting $functionAppName $resourceGroup, $settings)
Here you need to provide function app name, resource group and then settings infp
SetAppSetting $functionAppName $ResourceGroupnae @{ Testdata = "test4";Testdata2 = "test3"; FUNCTIONS_EXTENSION_VERSION = '~2'}
Shows info about a functionapp
GetFunctionAppInfo $functionAppName $resourcegroupname
Some terraform links
hashicorp/terraform-provider-azurerm#917
https://www.terraform.io/docs/providers/azurerm/r/app_service_plan.html#app_service_environment_id