turbot/steampipe-mod-azure-compliance

Query: servicebus_namespace_azure_ad_authentication_enabled

Usage

powerpipe query azure_compliance.query.servicebus_namespace_azure_ad_authentication_enabled

SQL

select
a.id as resource,
case
when status = 'Active'
and not disable_local_auth then 'alarm'
else 'ok'
end as status,
case
when status = 'Active'
and not disable_local_auth then a.name || ' namespace not configured with Azure AD authentication.'
else a.name || ' namespace configured with Azure AD authentication.'
end as reason
, a.resource_group as resource_group
, sub.display_name as subscription
from
azure_servicebus_namespace a
left join azure_subscription as sub on sub.subscription_id = a.subscription_id;

Controls

The query is being used by the following controls: