turbot/azure_insights

Query: compute_disk_by_attachment

Usage

powerpipe query azure_insights.query.compute_disk_by_attachment

Steampipe Tables

SQL

select
attachment,
count(*)
from (
select disk_state,
case when disk_state = 'Unattached' then
'unattached'
else
'attached'
end attachment
from
azure_compute_disk) as cd
group by
attachment
order by
attachment;

Dashboards

The query is used in the dashboards: