last sync: 2025-May-01 19:36:43 UTC

[Deprecated]: Ensure that 'PHP version' is the latest, if used as a part of the API app

Azure BuiltIn Policy definition

Source Azure Portal
Display name [Deprecated]: Ensure that 'PHP version' is the latest, if used as a part of the API app
Id 1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba
Version 2.1.0-deprecated
Details on versioning
Versioning Versions supported for Versioning: 1
2.1.0 (2.1.0-deprecated)
Built-in Versioning [Preview]
Category App Service
Microsoft Learn
Description Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. We recommend all customers who are still using API Apps to implement the built-in policy called 'App Service apps that use PHP should use the latest 'PHP version'', which is scoped to include API apps.
Cloud environments AzureCloud = true
AzureUSGovernment = unknown
AzureChinaCloud = unknown
Available in AzUSGov Unknown, no evidence if Policy definition is/not available in AzureUSGovernment
Assessment(s) Assessments count: 1
Assessment Id: 6b86d069-b3c3-b4d7-47c7-e73ddf786a63
DisplayName: PHP should be updated to the latest version for API apps
Description: It's important to regularly update the PHP software used in API apps to the latest version.
Newer versions often include security fixes and additional functionalities.
If not updated, the API apps may be exposed to security vulnerabilities present in older versions, potentially leading to breaches.
Additionally, staying updated allows the apps to benefit from the new features and improvements introduced in the latest versions.

Remediation description: To set the PHP version for your API app, follow the instructions to show and set the version using the Azure CLI outlined in this document: https://aka.ms/configure-php
Categories: AppServices
Severity: Medium
preview: True
Mode Indexed
Type BuiltIn
Preview False
Deprecated True
Effect Default
AuditIfNotExists
Allowed
AuditIfNotExists, Disabled
RBAC role(s) none
Rule aliases THEN-ExistenceCondition (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Web/sites/config/web.linuxFxVersion Microsoft.Web sites/config properties.linuxFxVersion True False
Rule resource types IF (1)
Compliance Not a Compliance control
Initiatives usage none
History
Date/Time (UTC ymd) (i) Change type Change detail
2022-07-01 16:32:34 change Version remains equal, new suffix: deprecated (2.1.0 > 2.1.0-deprecated)
2021-05-04 14:34:06 change Minor (2.0.0 > 2.1.0)
2020-10-20 13:29:33 change Major (1.0.0 > 2.0.0)
2019-11-12 19:11:12 add 1bc1795e-d44a-4d48-9b3b-6fff0fd5f9ba
JSON compare
compare mode: version left: version right:
JSON
api-version=2021-06-01
EPAC