๐ก๏ธ 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.