turbot/steampipe-mod-azure-compliance

Control: Geo-redundant storage should be enabled for Storage Accounts

Description

Use geo-redundancy to create highly available applications.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.storage_account_geo_redundant_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
s.id as resource,
case
when sku_name = any(ARRAY ['Standard_GRS', 'Standard_RAGRS', 'Standard_GZRS', 'Standard_RAGZRS']) then 'ok'
else 'alarm'
end as status,
case
when sku_name = any(ARRAY ['Standard_GRS', 'Standard_RAGRS', 'Standard_GZRS', 'Standard_RAGZRS']) then name || ' geo-redundant enabled.'
else name || ' geo-redundant 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