turbot/azure_thrifty
GitHub
Loading controls...

Control: Disks should be resized if too large

Description

Large disks are unusual, expensive and should be reviewed.

Usage

Run the control in your terminal:

steampipe check azure_thrifty.control.compute_disk_large

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share azure_thrifty.control.compute_disk_large

Plugins & Tables

Params

ArgsNameDefaultDescriptionVariable
$1compute_disk_max_size_gb
100
The maximum size (GB) allowed for disks.

SQL

select
disk.unique_id as resource,
case
when disk_size_gb <= $1 then 'ok'
else 'alarm'
end as status,
disk.title || ' is ' || disk_size_gb || ' GB.' as reason,
disk.resource_group,
display_name as subscription
from
azure_compute_disk as disk,
azure_subscription as sub
where
sub.subscription_id = disk.subscription_id;

Tags