turbot/azure_compliance

Query: search_service_uses_managed_identity

Usage

powerpipe query azure_compliance.query.search_service_uses_managed_identity

SQL

select
s.id as resource,
case
when identity ->> 'type' = 'SystemAssigned' then 'ok'
else 'alarm'
end as status,
case
when identity ->> 'type' = 'SystemAssigned' then name || ' use managed identity.'
else name || ' not use managed identity.'
end as reason
, s.resource_group as resource_group
, sub.display_name as subscription
from
azure_search_service as s,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id;

Controls

The query is being used by the following controls: