turbot/steampipe-mod-azure-compliance

Control: Storage accounts should have infrastructure encryption

Description

Enable infrastructure encryption for higher level of assurance that the data is secure. When infrastructure encryption is enabled, data in a storage account is encrypted twice.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.storage_account_infrastructure_encryption_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_compliance.control.storage_account_infrastructure_encryption_enabled --share

SQL

This control uses a named query:

select
s.id as resource,
case
when require_infrastructure_encryption then 'ok'
else 'alarm'
end as status,
case
when require_infrastructure_encryption then name || ' infrastructure encryption enabled.'
else name || ' infrastructure encryption disabled.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_storage_account as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id;

Tags