standard
turbot/azure_compliance

Trigger: Detect & correct App Service web apps without the latest PHP version

Detect App Services web apps without the latest PHP version and then enable latest PHP version.

Query

select
concat(id, ' [', subscription_id, '/', resource_group, ']') as title,
id as id,
name,
resource_group,
subscription_id,
_ctx ->> 'connection_name' as conn
from
azure_app_service_web_app
where
exists (
select
from
unnest(regexp_split_to_array(kind, ',')) elem
where
elem like 'app%'
)
and exists (
select
from
unnest(regexp_split_to_array(kind, ',')) elem
where
elem = 'linux'
)
and configuration -> 'properties' ->> 'linuxFxVersion' like 'PHP%'
and configuration -> 'properties' ->> 'linuxFxVersion' <> 'PHP|8.3';

Schedule

15m

Tags

category = Compliance
plugin = azure
service = Azure/AppService