Skip to content

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"
}