π Azure App Service does not run the latest Python version π’
- Contextual name: π App Service does not run the latest Python version π’
- ID:
/ce/ca/azure/app-service/latest-python-version
- Located in: π Azure App Service
Flagsβ
- π’ Impossible policy
- π’ Policy with categories
- π’ Policy with type
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
PERFORMANCE
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-a20e54a0
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-a20e54a0 | 1 |
Descriptionβ
Descriptionβ
Periodically, older versions of Python may be deprecated and no longer supported. Using a supported version of Python for app services is recommended to avoid potential unpatched vulnerabilities.
Rationaleβ
Deprecated and unsupported versions of programming and scripting languages can present vulnerabilities which may not be addressed or may not be addressable.
Impactβ
If your app is written using version-dependent features or libraries, they may not be available on more recent versions. If you wish to update, research the impact thoroughly.
Auditβ
Take note of the currently supported versions (given a status of "security") of Python here: https://devguide.python.org/versions/
From Azure Portalβ
- From Azure Home open the Portal Menu in the top left.
- Go to
App Services
.- Click on each App.
- Under
Settings
section, click onConfiguration
.- Click on the
General settings
pane, ensure that for aStack
ofPython
theMajor Version
andMinor Version
reflect a currently supported release.... see more
Remediationβ
Remediationβ
From Azure Portalβ
- From Azure Home open the Portal Menu in the top left.
- Go to
App Services
.- Click on each App.
- Under
Settings
section, click onConfiguration
.- Click on the
General settings
pane and ensure that theMajor Version
and theMinor Version
is set to a currently supported release.NOTE: No action is required if
Python version
is set toOff
, as Python is not used by your web app.From Azure CLIβ
To see the list of supported runtimes:
az webapp list-runtimes
To set latest Python version for an existing app, run the following command:
az webapp config set --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --windows-fx-version "PYTHON|<VERSION>" --linux-fx-version "PYTHON|<VERSION>"
From PowerShellβ
As of this writing, there is no way to update an existing application's
SiteConfig
or set the a new application'sSiteConfig
settings during creation via PowerShell.