Control: Ensure that Azure Active Directory Admin is configured
Description
Use Azure Active Directory Authentication for authentication with SQL Database.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.sql_db_active_directory_admin_configured
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.sql_db_active_directory_admin_configured --share
SQL
This control uses a named query:
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 subscriptionfrom azure_sql_server s, azure_subscription subwhere sub.subscription_id = s.subscription_id;