yaya2devops / azcost

Azure Costs in Seconds 💸

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Costs From CLI

Install the tool

  • Print Costs
azure-cost accumulatedCost -s <SubscriptionID> --debug
  • And output JSON
azure-cost accumulatedCost -s <SubscriptionID> -o json
  • Direct to JSON file
azure-cost show -s <SubscriptionID> -o json > cost.json
  • Direct to Text file
azure-cost costByResource -s <SubscriptionID> -o text
  • Direct to Markdown file
azure-cost show -s <SubscriptionID> -o markdown > cost.md
  • Query from yesterday
azure-cost -s <SubscriptionID> -o json --query "totals.yesterdayCost"

Performing cost review using the tool

cause

About

Azure Costs in Seconds 💸