π‘οΈ 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 - Tags:
- βͺ Impossible policy
- π’ Policy with categories
- π’ Policy with type
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY,RELIABILITY,PERFORMANCE
Similar Policiesβ
- Cloud Conformity: Check for Latest Version of Python
- 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
Settingssection, click onConfiguration.- Click on the
General settingspane, ensure that for aStackofPythontheMajor VersionandMinor Versionreflect 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
Settingssection, click onConfiguration.- Click on the
General settingspane and ensure that theMajor Versionand theMinor Versionis set to a currently supported release.NOTE: No action is required if
Python versionis set toOff, as Python is not used by your web app.From Azure CLIβ
To see the list of supported runtimes:
az webapp list-runtimesTo 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
SiteConfigor set the a new application'sSiteConfigsettings during creation via PowerShell.