{"id":15674554,"url":"https://github.com/trstringer/az-consumption-summary","last_synced_at":"2025-05-06T23:17:45.336Z","repository":{"id":55027354,"uuid":"314718117","full_name":"trstringer/az-consumption-summary","owner":"trstringer","description":"Azure consumption summary and reporting for the terminal","archived":false,"fork":false,"pushed_at":"2021-03-02T22:44:52.000Z","size":48,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"trunk","last_synced_at":"2025-05-06T23:17:41.206Z","etag":null,"topics":["azure","cli"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trstringer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-21T02:41:24.000Z","updated_at":"2023-08-29T10:38:52.000Z","dependencies_parsed_at":"2022-08-14T09:30:59.179Z","dependency_job_id":null,"html_url":"https://github.com/trstringer/az-consumption-summary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Faz-consumption-summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Faz-consumption-summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Faz-consumption-summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Faz-consumption-summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trstringer","download_url":"https://codeload.github.com/trstringer/az-consumption-summary/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782835,"owners_count":21803410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","cli"],"created_at":"2024-10-03T15:46:46.553Z","updated_at":"2025-05-06T23:17:45.281Z","avatar_url":"https://github.com/trstringer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# az-consumption-summary\n\nShow a consumption report in your terminal for your Azure subscription.\n\n![Sample](./sample.png)\n\n## Requirements\n\n* Python 3\n* Bash\n* Azure CLI\n* [termgraph](https://github.com/mkaz/termgraph)\n* make\n\n## Installation\n\nClone this repo and then run `make install-report`.\n\n## Usage\n\nThe main report can be displayed in your terminal by running:\n\n```\n$ az-consumption-report\n```\n\n**Note: This uses the currently logged in Azure CLI credentials and subscription.**\n\nAll this script does is run `az consumption usage list` and then pipes that to `az-consumption-summary`:\n\n```\n$ az-consumption-summary --help\nUsage: az_consumption_summary.py [OPTIONS] COMMAND [ARGS]...\n\n  `az consumption usage list` summarizer\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  costs     Cost summary grouping from consumption\n  timeline  Billing period and timing summary\n  total     Get the total cost of all input data\n```\n\nThe output of these three commands is formatted explicitly for termgraph.\n\n## Windows support\n\nThis was developed and tested on Linux (it should work with macOS, but please open an issue if that isn't the case). If you are interested in running this on Windows then you should be able to in WSL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Faz-consumption-summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrstringer%2Faz-consumption-summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Faz-consumption-summary/lists"}