Ensure app services use Azure files

Error: App services do not use Azure files

Bridgecrew Policy ID: BC_AZR_GENERAL_65
Checkov Check ID: CKV_AZURE_88
Severity: LOW

App services do not use Azure files

Description

The content directory of an app service should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity.

Fix - Buildtime

Terraform

  • Resource: azurerm_app_service
  • Argument: storage_account.type
resource "azurerm_app_service" "example" {
              ...
 +            storage_account {
                name = "test_name"
 +              type = "AzureFiles"
                ...
                }
              }

Did this page help you?