turbot/azure_thrifty

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:

powerpipe control run azure_thrifty.control.compute_disk_snapshot_storage_standard

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_thrifty.control.compute_disk_snapshot_storage_standard --share

Steampipe 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