turbot/azure_insights

Query: cosmosdb_mongo_database_input

Usage

powerpipe query azure_insights.query.cosmosdb_mongo_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_cosmosdb_mongo_database as d,
azure_subscription as sub
where
lower(d.subscription_id) = lower(sub.subscription_id)
order by
d.title;