An open API service indexing awesome lists of open source software.

https://github.com/imjoseangel/azure-cost-cli

Python CLI tool to perform cost analysis on your Azure subscription
https://github.com/imjoseangel/azure-cost-cli

Last synced: 7 months ago
JSON representation

Python CLI tool to perform cost analysis on your Azure subscription

Awesome Lists containing this project

README

          

# Python Azure Cost CLI

This is a simple command line tool to get the cost of your Azure Tenant. It uses the Azure Cost Management API to get the cost and output the results to the console, text, csv, markdown or JSON. E.g. so it can be used in a workflow to get the cost of your tenant and use it in subsequent steps.

## Installation

```bash
pip install -r requirements.txt
```

## References

* [Getting started - Managing Consumption using Azure Python SDK](https://learn.microsoft.com/en-us/samples/azure-samples/azure-samples-python-management/costmanagement/)

* [Examples Documentation](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/costmanagement)

* [Example on Stack Overflow](https://stackoverflow.com/questions/56938103/azure-usage-and-cost-of-resources-in-a-subscription/73666578#73666578)