turbot/azure_thrifty
GitHub
Loading controls...

Control: Disks should use standard snapshots

Description

Use standard storage instead of premium storage for managed disk snapshots to save 60% on costs.

Usage

Run the control in your terminal:

steampipe check azure_thrifty.control.compute_disk_snapshot_storage_standard

Snapshot and share results via Steampipe Cloud:

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

Plugins & Tables

SQL

select
ss.id as resource,
case
when ss.sku_tier = 'Standard' then 'ok'
else 'alarm'
end as status,
case
when ss.sku_tier = 'Standard' then ss.title || ' has storage type ' || ss.sku_tier || '.'
else ss.title || ' has storage type ' || ss.sku_tier || '.'
end as reason,
ss.resource_group,
display_name as subscription
from
azure_compute_snapshot as ss,
azure_subscription as sub
where
ss.subscription_id = sub.subscription_id;

Tags