Review the Web App minimum TLS version

Review the effective App Service minimum TLS version and client compatibility, and use TLS 1.2 or later.

Description

Set the Web App’s minimum TLS version through siteConfig.minTlsVersion or minTlsVersion in its web child configuration. New apps default to 1.2. Check the effective value when the property is omitted.

Potential impact

A low minimum may admit protocols your policy disallows. Raising it can prevent older clients or deployment tools from connecting.

Remediation

Require at least 1.2 and consider 1.3 when clients support it. Check the minimum separately on the app and the SCM administration site. Test that each accepts an approved version and rejects versions below its minimum. Also check HTTPS enforcement, certificate validation and cipher suites.

Examples

The excerpts raise the minimum from 1.1 to 1.2 in the same app’s web configuration. Supply the actual app name, App Service plan and remaining deployment inputs.

Before

bicep
resource app 'Microsoft.Web/sites@2022-09-01' = {
  name: 'example-app'
  location: resourceGroup().location
  properties: {}
}

resource appWebConfig 'Microsoft.Web/sites/config@2022-09-01' = {
  parent: app
  name: 'web'
  properties: {
    minTlsVersion: '1.1'
  }
}

After

bicep
resource app 'Microsoft.Web/sites@2022-09-01' = {
  name: 'example-app'
  location: resourceGroup().location
  properties: {}
}

resource appWebConfig 'Microsoft.Web/sites/config@2022-09-01' = {
  parent: app
  name: 'web'
  properties: {
    minTlsVersion: '1.2'
  }
}

References