Skip to content

Azure App Service Web app does not use latest Python version

Description

Azure App Service web applications developed with the Python should use the latest available version of Python to ensure the latest security fixes are in use.

Code Example

go
{
 "resource "azurerm_app_service" "example" {
   ...
+  site_config {
+   python_version = "3.4"
}

",
}

Remediation

Terraform

  • Resource: azurerm_app_service
  • Arguments: python_version - (Optional) The version of Python to use in this App Service.

Possible values are 2.7 and 3.4.

Rule Details

FieldValue
IDIAC-0590
SeverityLOW
IaC Typearm
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AZURE_82

References