Ensure Azure App Service Web app uses the latest Python version

Error: Azure App Service Web app does not use the latest Python version

Bridgecrew Policy ID: BC_AZR_GENERAL_59
Checkov Check ID: CKV_AZURE_82
Severity: LOW

Azure App Service Web app does not use the 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.

Fix - Buildtime

Terraform

  • Resource: azurerm_app_service
  • Argument: python_version - (Optional) The version of Python to use in this App Service. Possible values are 2.7 and 3.4.
resource "azurerm_app_service" "example" {
   ...
+  site_config {
+   python_version = "3.4"
}

Did this page help you?