Ensure Azure function app authentication is on

Error: Azure function app authentication is off

Bridgecrew Policy ID: BC_AZR_GENERAL_47
Checkov Check ID: CKV_AZURE_56
Severity: LOW

Azure function app authentication is off

Description

Azure App Service Authentication is a feature that can prevent anonymous HTTP requests from reaching the Function app, or authenticate those that have tokens before they reach the Function app.

Fix - Buildtime

Terraform

  • Resource: azurerm_function_app
  • Argument: auth_settings.enabled
resource "azurerm_function_app" "example" {
              ...
 +            auth_settings {
 +              enabled = true
              }
            }

Did this page help you?