Giter Club home page Giter Club logo

automation-azure-costmgmt's Introduction

Azure Cost Management Runbook

A Python script (Runbook) for getting the daily cost of azure resources in subscription level.

Prerequiste

Python packages

Package Uses
Adal or MSAL The Microsoft Authentication Library for Python enables applications to integrate with the Microsoft identity platform. [PlDb]
Requests Requests is a simple, yet elegant, HTTP library. [PlGh]
AutomationAssets This is the Microsoft Azure Automation Client Library. [PlGd]
Pandas Pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. [PlOd]
Pretty_html_table pretty_html_table exists to convert a pandas DataFrame into a pretty html table for use in email. The intended target audience is anyone who needs to send reports via email and would like to make their tables look more attractive. [PlMe]
SMTPLib Smtp Lib is a client library which will help you in sending the mail. [PlGa]

Insallation

  • Install all the above mentioned packages through pip install <package-name>.
  • Login to Azure account.
  • Search Cost Management + Billing and navigate to Cost Management > Cost analysis and, then set filter based on your requirement.

Run Script

  • Run the azureCostMgmt.py to get the daily usage data.

Blog

You can checkout my blog for more information about this.

automation-azure-costmgmt's People

Contributors

cprasad-1512 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.