Skip to content

A python utility to calculate cost for resources in azure.

Notifications You must be signed in to change notification settings

sudhirpandey/azbillops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Usage

  • Make sure you have created relevant service account in azure with appropriate role to be able to read from given subscription . This can be achieved by following one of the method described here
  • fill up the relevant section of cred.sh file to hold appropriate value
  • sh -x cred.sh 
    python getcost.py 
    
  • View breakdown of cost for each resource involved under each day / hour
    python getcost.py --details
    python getcost.py --resolution=Hour --details
    

To do list

  • Make self sufficent dockerfile to get container image.
  • Make start date paramaterized
  • Have parameter to hook up with slack Url for notification if cost exceepts
  • Possibly be able to shutdown resources that are generating most cost

About

A python utility to calculate cost for resources in azure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published