turbot/terraform_azure_compliance

Query: compute_vm_allow_extension_operations_disabled

Usage

powerpipe query terraform_azure_compliance.query.compute_vm_allow_extension_operations_disabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'allow_extension_operations')::boolean or (attributes_std ->> 'allow_extension_operations') is null then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'allow_extension_operations')::boolean or (attributes_std ->> 'allow_extension_operations') is null then ' allow extension operations'
else ' disallow extension operations'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('azurerm_linux_virtual_machine', 'azurerm_windows_virtual_machine');

Controls

The query is being used by the following controls: