turbot/steampipe-mod-azure-compliance

Query: iam_conditional_access_trusted_location_configured

Usage

powerpipe query azure_compliance.query.iam_conditional_access_trusted_location_configured

SQL

with distinct_tenant as (
select
distinct tenant_id,
subscription_id,
_ctx
from
azure_tenant
)
select
id as resource,
case
when (location_info -> 'IsTrusted')::bool then 'ok'
else 'alarm'
end as status,
case
when (location_info -> 'IsTrusted')::bool then title || ' trusted location configured.'
else title || ' trusted location not configured.'
end as reason,
t.tenant_id
from
distinct_tenant as t,
azuread_conditional_access_named_location;

Controls

The query is being used by the following controls: