turbot/azure_compliance

Query: compute_vm_utilizing_managed_disk

Usage

powerpipe query azure_compliance.query.compute_vm_utilizing_managed_disk

SQL

select
vm.id as resource,
case
when managed_disk_id is null then 'alarm'
else 'ok'
end as status,
case
when managed_disk_id is null then vm.name || ' VM not utilizing managed disks.'
else vm.name || ' VM utilizing managed disks.'
end as reason
, vm.resource_group as resource_group
, sub.display_name as subscription
from
azure_compute_virtual_machine as vm,
azure_subscription as sub
where
sub.subscription_id = vm.subscription_id;

Controls

The query is being used by the following controls: