turbot/steampipe-mod-azure-compliance

Query: storage_account_default_to_oauth_authentication

Usage

powerpipe query azure_compliance.query.storage_account_default_to_oauth_authentication

SQL

select
sa.id as resource,
case
when default_to_oauth_authentication then 'ok'
else 'alarm'
end as status,
case
when default_to_oauth_authentication then sa.name || ' default to Microsoft Entra authorization is enabled.'
else sa.name || ' default to Microsoft Entra authorization is disabled.'
end as reason
, sa.resource_group as resource_group
, sub.display_name as subscription
from
azure_storage_account sa,
azure_subscription sub
where
sub.subscription_id = sa.subscription_id;

Controls

The query is being used by the following controls: