turbot/azure_compliance

Query: compute_vm_scale_set_automatic_upgrade_enabled

Usage

powerpipe query azure_compliance.query.compute_vm_scale_set_automatic_upgrade_enabled

SQL

select
a.id as resource,
case
when upgrade_policy is null then 'skip'
when upgrade_policy ->> 'mode' = 'Automatic' then 'ok'
else 'alarm'
end as status,
case
when upgrade_policy is null then a.title || ' upgrade policy not applicable.'
when upgrade_policy ->> 'mode' = 'Automatic' then a.title || ' automatic update enabled.'
else a.title || ' automatic update disabled.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_compute_virtual_machine_scale_set as a,
azure_subscription as sub
where
sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: