turbot/azure_compliance

Query: sql_db_active_directory_admin_configured

Usage

powerpipe query azure_compliance.query.sql_db_active_directory_admin_configured

SQL

select
s.id as resource,
case
when server_azure_ad_administrator is null then 'alarm'
else 'ok'
end as status,
case
when server_azure_ad_administrator is null then name || ' Azure AD authentication not configured.'
else name || ' Azure AD authentication configured.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_sql_server s,
azure_subscription sub
where
sub.subscription_id = s.subscription_id;

Controls

The query is being used by the following controls: