If you use the Microsoft Azure ecosystem, the Azure Cost CLI can be very useful for tracking costs.

Depending on what you do with your Azure instances and services, the costs are not necessarily the same and it is not very practical to keep track of everything just through the website. The Azure Cost CLI tool allows you to monitor costs related to resource usage directly from your terminal.

This software uses the Azure Cost Management API to recover costs and presents the results directly in the console or in JSON format. JSON that you can then use in your tools or scripts.

In addition to displaying cumulative costs, as you can see above, daily costs can also be viewed, resources can be extracted by cost, and budgets can be listed.

This tool can also be used in a GitHub workflow to find out the cost of our subscription and save the results to Markdown to get a quick overview of our subscription costs.

The Azure Cost CLI project is available on Github.