turbot/azure_insights

Query: sql_database_input

Usage

powerpipe query azure_insights.query.sql_database_input

SQL

select
d.title as label,
lower(d.id) as value,
json_build_object(
'subscription', sub.display_name,
'resource_group', d.resource_group,
'region', d.region
) as tags
from
azure_sql_database as d,
azure_subscription as sub
where
lower(d.subscription_id) = lower(sub.subscription_id)
order by
d.title;