turbot/terraform_azure_compliance

Query: sql_server_azure_ad_authentication_enabled

Usage

powerpipe query terraform_azure_compliance.query.sql_server_azure_ad_authentication_enabled

Steampipe Tables

SQL

select
address as resource,
case
when name in (select split_part((attributes_std ->> 'server_name'), '.', 2) from terraform_resource where type = 'azurerm_sql_active_directory_administrator') then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when name in (select split_part((attributes_std ->> 'server_name'), '.', 2) from terraform_resource where type = 'azurerm_sql_active_directory_administrator') then ' has AzureAD authentication enabled'
else ' does not have AzureAD authentication enabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_sql_server';

Controls

The query is being used by the following controls: