App Service web apps should have ‘Minimum TLS Version’ set to ‘1.2’

Description

The TLS (Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards.

Remediation Steps

Azure Portal

  • Navigate to App Services.

  • In the left navigation, select TLS/SSL settings.

  • In Minimum TLS Version, select 1.2.

Azure CLI

  • To enable TLS 1.2:

az webapp config set --resource-group MyResourceGroup \
                     --name MyResourceName \
                     --min-tls-version 1.2

Terraform

  • Ensure that the azurerm_app_service min_tls_version field is set to 1.2 within the site_config block.

Example Configuration

resource "azurerm_app_service" "example" {
  site_config {
    min_tls_version = "1.2"
  }
  # other required fields here
}