turbot/azure_compliance

Query: compute_vm_uses_azure_resource_manager

Usage

powerpipe query azure_compliance.query.compute_vm_uses_azure_resource_manager

SQL

select
vm.vm_id as resource,
case
when resource_group is not null then 'ok'
else 'alarm'
end as status,
case
when resource_group is not null then vm.title || ' uses azure resource manager.'
else vm.title || ' not uses azure resource manager.'
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: