Remediation
From Azure Portalโ
- In the Azure portal, open the portal menu in the upper left.
- Go to
App Services. - Select each app.
- Under
Settingssection, click onConfiguration. - Select the
General settingspane and ensure that theMajor VersionandMinor Versionare set to a currently supported release.
Note: No action is required if Python version is set to Off, 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 the 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|{{python-version}}" \
--linux-fx-version "PYTHON|{{python-version}}"
From PowerShellโ
As of this writing, there is no way to update an existing application's SiteConfig or set a new application's SiteConfig settings during creation via PowerShell.