A simple module wrapper for Flex Consumption Plans for Terraform
You can use this module from my public Proget feeds hosted here: https://packages.neillans.co.uk/feeds/terraform
This Proget server is available through the generosity of Inedo providing a license for Open Source projects.
Below is an example of how to use this module in your Terraform configuration:
module "flex_function_app" {
source = "./terraform"
storage_account_name = "mystorageacct123"
location = "westeurope"
function_app_name = "my-flex-func-app"
plan_name = "my-flex-plan"
resource_group_name = "my-resource-group"
resource_group_id = "/subscriptions/xxxx/resourceGroups/my-resource-group"
auth_require_authentication = true
auth_unauthentication_action = "RedirectToLoginPage"
auth_require_https = true
auth_client_id = "<client-id>"
auth_client_secret_setting_name = "<secret-setting-name>"
auth_openid_well_known_configuration = "<openid-config-url>"
# Add other required variables as needed
}Adjust the variable values as needed for your environment. See variables.tf for all available options.
Deploy with:
func azure functionapp publish <APP_NAME>