Advisor for Azure environment
azureadvisor
is a tool to list unused resources and help optimize costs.
- Unattached Disks - This managed disk is not attached to any VMs.
- Unused VM's Disks - This managed disk is connected to unused VM that is no CPU Utilization in month.
- Running VM - This VM has been used within one month.
- Unused HDInsight cluster - This HDInsight cluster has not had a Gateway Request within one month.
This tool requires Azure CLI and read permission for resources.
# You need login and set target subscription.
az login
az account set --subscription <Your subscriptionID>
# Execute command
./azureadvisor --subscriptionID <Your subscriptionID> disk
NAME:
advisor - Azure Advisor
USAGE:
azureadvisor [global options] command [command options] [arguments...]
COMMANDS:
disk Advisor for Disk
vm Advisor for VM
hdinsight Advisor for HDInsight
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--subscriptionID value
--help, -h show help (default: false)
Please see sample directory.
The part of this tool that gets metrics is based on "azmon". https://github.com/heartbeatsjp/azmon