turbot/azure_insights

Query: key_vault_access_policies

Usage

powerpipe query azure_insights.query.key_vault_access_policies

Steampipe Tables

SQL

select
p ->> 'objectId' as "User Object ID",
p ->> 'permissionsCertificates' as "Certificate Permissions",
p ->> 'permissionsKeys' as "Key Permissions",
p ->> 'permissionsSecrets' as "Secret Permissions",
p ->> 'permissionsStorage' as "Storage Permissions",
p ->> 'tenantId' as "Tenant ID"
from
azure_key_vault,
jsonb_array_elements(access_policies) as p
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: