Azure Thrifty Mod

Be Thrifty on Azure! This mod checks for unused resources and opportunities to optimize your spend on Azure.



Azure provides on-demand cloud computing platforms and APIs to authenticated customers on a metered pay-as-you-go basis.

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

Steampipe Mods are collections of named queries, and codified controls that can be used to test current configuration of your cloud resources against a desired configuration.


Get started

Install the Azure plugin with Steampipe:

steampipe plugin install azure


git clone https://github.com/turbot/steampipe-mod-azure-thrifty.git
cd steampipe-mod-azure-thrifty

Run all benchmarks:

steampipe check all

Run a specific control:

steampipe check control.compute_disk_unattached


This mod uses the credentials configured in the Steampipe Azure plugin.


Several benchmarks have input variables that can be configured to better match your environment and requirements. Each variable has a default defined in steampipe.spvars, but these can be overwritten in several ways:

  • Modify the steampipe.spvars file

  • Remove or comment out the value in steampipe.spvars, after which Steampipe will prompt you for a value when running a query or check

  • Pass in a value on the command line:

    steampipe check benchmark.compute --var=compute_disk_max_size_gb=100
  • Set an environment variable:

    compute_disk_max_size_gb=100 steampipe check control.compute_disk_large
    • Note: When using environment variables, if the variable is defined in steampipe.spvars or passed in through the command line, either of those will take precedence over the environment variable value. For more information on variable definition precedence, please see the link below.

These are only some of the ways you can set variables. For a full list, please see Passing Input Variables.

Get involved