turbot/azure_compliance

Query: cosmosdb_account_key_based_metadata_write_access_disabled

Usage

powerpipe query azure_compliance.query.cosmosdb_account_key_based_metadata_write_access_disabled

SQL

select
a.id as resource,
case
when disable_key_based_metadata_write_access then 'ok'
else 'alarm'
end as status,
case
when disable_key_based_metadata_write_access then a.name || ' key based metadata write_access disabled.'
else a.name || ' key based metadata write_access enabled.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_cosmosdb_account as a,
azure_subscription as sub
where
sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: