turbot/terraform_azure_compliance

Query: compute_vm_and_scale_set_agent_installed

Usage

powerpipe query terraform_azure_compliance.query.compute_vm_and_scale_set_agent_installed

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'provision_vm_agent') = 'false' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'provision_vm_agent') = 'false' then ' agent not installed'
else ' agent installed'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('azurerm_linux_virtual_machine_scale_set', 'azurerm_windows_virtual_machine_scale_set', 'azurerm_windows_virtual_machine', 'azurerm_linux_virtual_machine');

Controls

The query is being used by the following controls: