turbot/azure_compliance

Query: compute_vm_scale_set_uses_managed_disks

Usage

powerpipe query azure_compliance.query.compute_vm_scale_set_uses_managed_disks

SQL

select
a.id as resource,
case
when virtual_machine_storage_profile -> 'osDisk' -> 'osType' -> 'vhdContainers' != null then 'ok'
else 'alarm'
end as status,
case
when virtual_machine_storage_profile -> 'osDisk' -> 'osType' -> 'vhdContainers' != null then a.title || ' utilising managed disks.'
else a.title || ' not utilising managed disks.'
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: