turbot/azure_compliance

Query: storage_account_geo_redundant_enabled

Usage

powerpipe query azure_compliance.query.storage_account_geo_redundant_enabled

SQL

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;

Controls

The query is being used by the following controls: