← Back to all products

Azure Cost Guardian Toolkit

$59

Comprehensive Azure cost management toolkit covering the entire data platform. 50+ API queries, anomaly detection, RI calculator, and FinOps playbook.

📁 15 files🏷 v1.0.0
Production-ready
✓ Instant download✓ Lifetime updates✓ MIT licensed✓ MIT license✓ Secure checkout (Stripe)

📋 What's Inside 15 files

  • README.md
  • manifest.json
  • queries/cost_management_queries.py
  • policies/budget_alerts.json
  • policies/tagging_enforcement.json
  • notebooks/cost_anomaly_detection.py
  • notebooks/reserved_instance_calculator.py
  • scripts/idle_resource_detector.py
  • scripts/storage_lifecycle_manager.py
  • scripts/advisor_automation.py
  • templates/monthly_finops_review.md
  • templates/chargeback_report.md
  • terraform/cost-management/main.tf
  • terraform/cost-management/variables.tf
  • guides/finops_playbook.md

📁 File Structure 15 files

azure-cost-guardian/
├── README.md
├── manifest.json
├── queries/
│ ├── cost_management_queries.py
├── policies/
│ ├── budget_alerts.json
│ ├── tagging_enforcement.json
├── notebooks/
│ ├── cost_anomaly_detection.py
│ ├── reserved_instance_calculator.py
├── scripts/
│ ├── idle_resource_detector.py
│ ├── storage_lifecycle_manager.py
│ ├── advisor_automation.py
├── templates/
│ ├── monthly_finops_review.md
│ ├── chargeback_report.md
├── terraform/
│ ├── cost-management/
│ │ ├── main.tf
│ │ ├── variables.tf
├── guides/
│ ├── finops_playbook.md

📖 Documentation Preview README excerpt

Azure Cost Guardian Toolkit

By [Datanest Digital](https://datanest.dev) | Version 1.0.0 | $59

---

Overview

The Azure Cost Guardian Toolkit is a comprehensive, production-ready collection of scripts,

queries, policies, notebooks, and templates designed to give engineering and FinOps teams

complete visibility and control over Azure cloud spend.

Whether you are a platform engineer implementing cost guardrails, a FinOps practitioner

building chargeback models, or a team lead trying to eliminate waste, this toolkit provides

the building blocks to operationalize cloud cost management from day one.

What's Included

ComponentDescription
**Cost Management Queries**50+ Python functions wrapping Azure Cost Management APIs for programmatic spend analysis
**Budget Alert Policies**Ready-to-deploy budget alert configurations at subscription, resource group, and tag levels
**Tagging Enforcement Policies**Azure Policy definitions to enforce consistent resource tagging across your organization
**Cost Anomaly Detection Notebook**Databricks notebook for daily cost anomaly detection with configurable alerting thresholds
**Reserved Instance Calculator**Databricks notebook for RI sizing analysis and break-even calculations
**Idle Resource Detector**Script to find and report unused disks, unattached NICs, stopped VMs, and other waste
**Storage Lifecycle Manager**Automated storage tier management (hot -> cool -> archive) based on access patterns
**Advisor Automation**Script to fetch, filter, and act on Azure Advisor cost recommendations
**Terraform Modules**Infrastructure-as-code for budget alerts, action groups, and cost management resources
**FinOps Review Templates**Monthly executive review and chargeback/showback report templates
**FinOps Playbook**Comprehensive guide covering crawl-walk-run FinOps adoption

Prerequisites

  • Python 3.9+
  • Azure SDK for Python (`azure-mgmt-costmanagement`, `azure-mgmt-consumption`, `azure-identity`)
  • Terraform 1.5+ (for infrastructure modules)
  • Databricks Runtime 13.x+ (for notebooks)
  • Azure subscription with Cost Management Reader (minimum) role
  • Quick Start

    1. Install Dependencies
    
    

    pip install azure-identity azure-mgmt-costmanagement azure-mgmt-consumption \

    azure-mgmt-resource azure-mgmt-compute azure-mgmt-network azure-mgmt-storage \

    azure-mgmt-advisor azure-mgmt-monitor pandas numpy scipy requests

    
    
    
    2. Authenticate
    
    

    from azure.identity import DefaultAzureCredential

    credential = DefaultAzureCredential()

    
    
    
    3. Run Your First Query

    ... preview truncated, see full README in product download.

    📄 Code Sample .py preview

    queries/cost_management_queries.py""" Azure Cost Management API Query Templates ========================================== 50+ production-ready Python functions for querying Azure Cost Management APIs. Part of the Azure Cost Guardian Toolkit by Datanest Digital (https://datanest.dev). Usage: from azure.identity import DefaultAzureCredential from queries.cost_management_queries import get_monthly_cost_by_service credential = DefaultAzureCredential() results = get_monthly_cost_by_service(credential, "sub-id", months_back=3) """ from __future__ import annotations import json import logging from datetime import datetime, timedelta from typing import Any, Optional from azure.identity import DefaultAzureCredential from azure.mgmt.costmanagement import CostManagementClient from azure.mgmt.costmanagement.models import ( ExportType, FunctionType, GranularityType, QueryAggregation, QueryColumnType, QueryComparisonExpression, QueryDataset, QueryDefinition, QueryFilter, QueryGrouping, QueryTimePeriod, TimeframeType, ) from azure.mgmt.consumption import ConsumptionManagementClient

    📅 Changelog

    v1.0.0 — Initial release.

    Purchases include lifetime updates. Check the product page for the latest version.

    📄 Product Preview

    Try the interactive reader and demo tools below, or get the full product with all content unlocked.

    📖 Interactive Reader (Free Preview) 🔬 Interactive Edition (Deep Dive)⚙ Try Demo Tools📦 Download Free Sample

    ❓ Frequently Asked Questions

    What license is this under?

    How do I download after purchase?

    Do I get updates?

    What if it doesn't work for me?

    Can I get a refund?

    Is there support?

    Buy Now — $59 Back to Products