turbot/steampipe-mod-azure-compliance

Control: Cosmos DB account 'Access Control' should be configured to use Azure Active Directory (AAD) and Role-Based Access Control (RBAC)

Description

Azure Cosmos DB accounts should use Azure Active Directory (AAD) Client Authentication and Role-Based Access Control (RBAC) for access control.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.cosmosdb_account_uses_aad_and_rbac

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
a.id as resource,
case
when disable_local_auth then 'ok'
else 'alarm'
end as status,
case
when disable_local_auth then a.name || ' is using AAD and RBAC.'
else a.name || ' is not using AAD and RBAC.'
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;

Tags