turbot/azure_insights

Query: compute_public_virtual_machine_count

Usage

powerpipe query azure_insights.query.compute_public_virtual_machine_count

SQL

select
count(*) as value,
'Publicly Accessible' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
azure_compute_virtual_machine
where
public_ips is not null

Dashboards

The query is used in the dashboards: