Skip to content

Latest commit

Β 

History

History
320 lines (279 loc) Β· 23.1 KB

File metadata and controls

320 lines (279 loc) Β· 23.1 KB

Chapter 07: FinOps & Cost Management

Overview

Azure Cost Management provides comprehensive tools for monitoring, allocating, and optimizing cloud spend. For AWS engineers, this replaces AWS Cost Explorer, Budgets, and Cost Allocation Tags with a unified platform that also supports multi-cloud visibility.

AWS to Azure Mapping

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      FINOPS: AWS vs AZURE                                   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                              β”‚
β”‚  AWS                                   AZURE                                β”‚
β”‚  ───                                   ─────                                β”‚
β”‚                                                                              β”‚
β”‚  Cost Explorer              ──────────▢ Cost Analysis                       β”‚
β”‚  AWS Budgets                ──────────▢ Azure Budgets                       β”‚
β”‚  Cost Allocation Tags       ──────────▢ Cost Allocation / Tags              β”‚
β”‚  Savings Plans              ──────────▢ Azure Savings Plans                 β”‚
β”‚  Reserved Instances         ──────────▢ Azure Reservations                  β”‚
β”‚  Spot Instances             ──────────▢ Azure Spot VMs                      β”‚
β”‚  Compute Optimizer          ──────────▢ Azure Advisor                       β”‚
β”‚  Trusted Advisor (cost)     ──────────▢ Azure Advisor                       β”‚
β”‚  AWS Organizations (billing)──────────▢ Management Groups + Billing Scopes β”‚
β”‚  Cost & Usage Reports       ──────────▢ Cost Management Exports             β”‚
β”‚                                                                              β”‚
β”‚  KEY DIFFERENCES:                                                           β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  AWS: Cost Explorer is separate from budgets and recommendations    β”‚   β”‚
β”‚  β”‚       Savings Plans and RIs are different purchase mechanisms       β”‚   β”‚
β”‚  β”‚                                                                       β”‚   β”‚
β”‚  β”‚  Azure: Unified Cost Management + Billing portal                    β”‚   β”‚
β”‚  β”‚         Reservations cover compute, storage, database, and more     β”‚   β”‚
β”‚  β”‚         Native multi-cloud support (AWS, GCP visibility)            β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚                                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Azure Cost Management Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    AZURE COST MANAGEMENT ARCHITECTURE                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                                              β”‚
β”‚  BILLING HIERARCHY                    COST MANAGEMENT FEATURES             β”‚
β”‚  ─────────────────                    ────────────────────────             β”‚
β”‚                                                                              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   BILLING ACCOUNT       β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚   (EA/MCA/CSP)          β”‚         β”‚         COST ANALYSIS           β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚         β”‚  β€’ View costs by resource      β”‚  β”‚
β”‚  β”‚  β”‚  Billing Profile  β”‚  β”‚         β”‚  β€’ Group by subscription/tag   β”‚  β”‚
β”‚  β”‚  β”‚  (Invoice section)β”‚  │◀───────▢│  β€’ Time-based trends           β”‚  β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚         β”‚  β€’ Forecast future spend       β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ Export reports              β”‚  β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β”‚    Departments    β”‚  β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚  β”‚  β”‚   (EA only)       β”‚  β”‚                                              β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚                         β”‚         β”‚                                 β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚           BUDGETS               β”‚  β”‚
β”‚            β”‚                         β”‚                                 β”‚  β”‚
β”‚            β–Ό                         β”‚  β€’ Set spending limits          β”‚  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚  β€’ Alert at thresholds         β”‚  β”‚
β”‚  β”‚    SUBSCRIPTIONS        β”‚         β”‚  β€’ Trigger automation          β”‚  β”‚
β”‚  β”‚                         │◀───────▢│  β€’ Forecasted alerts           β”‚  β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β”‚  Resource Groups  β”‚  β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚  β”‚  β”‚                   β”‚  β”‚                                              β”‚
β”‚  β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚  β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  β”‚  β”‚  Resources  β”‚  β”‚  β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β”‚  β”‚  (with tags)β”‚  β”‚  β”‚         β”‚          ADVISOR                β”‚  β”‚
β”‚  β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚  β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  │◀───────▢│  β€’ Right-sizing VMs            β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ Reservation recommendations β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ Unused resources            β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚  β€’ Savings opportunities       β”‚  β”‚
β”‚                                      β”‚                                 β”‚  β”‚
β”‚                                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                                                              β”‚
β”‚  COST ALLOCATION                     COMMITMENT DISCOUNTS                  β”‚
β”‚  ───────────────                     ────────────────────                  β”‚
β”‚                                                                              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚                         β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β€’ Tags (cost center,   β”‚         β”‚  RESERVATIONS (1-3 year)       β”‚  β”‚
β”‚  β”‚    project, owner)      β”‚         β”‚  β€’ VMs: up to 72% savings       β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ SQL DB: up to 80% savings   β”‚  β”‚
β”‚  β”‚  β€’ Subscription-based   β”‚         β”‚  β€’ Storage: up to 38% savings  β”‚  β”‚
β”‚  β”‚    allocation           β”‚         β”‚  β€’ Cosmos DB, Redis, etc.      β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚  β€’ Resource group       β”‚         β”‚  SAVINGS PLANS (1-3 year)      β”‚  β”‚
β”‚  β”‚    chargeback           β”‚         β”‚  β€’ Flexible across VM sizes    β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ up to 65% savings           β”‚  β”‚
β”‚  β”‚  β€’ Custom allocation    β”‚         β”‚  β€’ Simpler than reservations   β”‚  β”‚
β”‚  β”‚    rules                β”‚         β”‚                                 β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  SPOT VMS                       β”‚  β”‚
β”‚  β”‚                         β”‚         β”‚  β€’ up to 90% savings            β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚  β€’ Can be evicted              β”‚  β”‚
β”‚                                      β”‚                                 β”‚  β”‚
β”‚                                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Chapter Contents

Quick Reference

  • Quick Reference - Essential commands, cost queries, and optimization checklist

Deep Dive Topics

  1. Cost Analysis & Visibility - Understanding and analyzing Azure costs
  2. Budgets & Alerts - Setting budgets and automated responses
  3. Reservations & Savings Plans - Commitment-based discounts
  4. Cost Optimization - Right-sizing, cleanup, and best practices
  5. Case Studies - Real-world FinOps implementations

Key Concepts for AWS Engineers

Billing Account Types

AZURE BILLING ACCOUNT TYPES:
────────────────────────────

ENTERPRISE AGREEMENT (EA):
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                             β”‚
β”‚  β€’ Large organizations (>$100K/year commitment)                            β”‚
β”‚  β€’ Upfront commitment, discounted rates                                    β”‚
β”‚  β€’ Departments and enrollment accounts                                     β”‚
β”‚  β€’ Similar to: AWS Enterprise Discount Program                             β”‚
β”‚                                                                             β”‚
β”‚  Hierarchy:                                                                 β”‚
β”‚  Billing Account β†’ Departments β†’ Enrollment Accounts β†’ Subscriptions      β”‚
β”‚                                                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

MICROSOFT CUSTOMER AGREEMENT (MCA):
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                             β”‚
β”‚  β€’ Modern billing for direct customers                                     β”‚
β”‚  β€’ No upfront commitment required                                          β”‚
β”‚  β€’ Billing profiles and invoice sections                                   β”‚
β”‚  β€’ Similar to: AWS regular accounts                                        β”‚
β”‚                                                                             β”‚
β”‚  Hierarchy:                                                                 β”‚
β”‚  Billing Account β†’ Billing Profiles β†’ Invoice Sections β†’ Subscriptions    β”‚
β”‚                                                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

CLOUD SOLUTION PROVIDER (CSP):
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                             β”‚
β”‚  β€’ Purchased through Microsoft partner                                     β”‚
β”‚  β€’ Partner manages billing relationship                                    β”‚
β”‚  β€’ May include value-added services                                        β”‚
β”‚  β€’ Similar to: AWS Marketplace reseller                                    β”‚
β”‚                                                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Cost Visibility Scopes

COST MANAGEMENT SCOPES:
───────────────────────

You can view costs at different levels:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                              β”‚
β”‚  SCOPE                    ACCESS NEEDED              USE CASE               β”‚
β”‚  ─────                    ─────────────              ────────               β”‚
β”‚                                                                              β”‚
β”‚  Billing Account          Billing Admin             Total enterprise spend β”‚
β”‚  (EA/MCA)                                           across all subs         β”‚
β”‚                                                                              β”‚
β”‚  Management Group         Reader on MG              Business unit costs    β”‚
β”‚                                                     across child subs       β”‚
β”‚                                                                              β”‚
β”‚  Subscription             Reader on sub             Application/team costs β”‚
β”‚                                                                              β”‚
β”‚  Resource Group           Reader on RG              Project-level costs    β”‚
β”‚                                                                              β”‚
β”‚  Individual Resource      Reader on resource        Specific service cost  β”‚
β”‚                                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

AWS COMPARISON:
β€’ AWS Cost Explorer also supports account-level filtering
β€’ Azure Management Groups = AWS Organizations OUs
β€’ Azure provides native multi-cloud cost visibility (AWS, GCP)

Tagging Strategy for Cost Allocation

RECOMMENDED TAGGING STRATEGY:
─────────────────────────────

MANDATORY TAGS (enforce via Azure Policy):
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Tag Name          Example Value        Purpose                             β”‚
β”‚ ────────          ─────────────        ───────                             β”‚
β”‚ CostCenter        CC-12345             Financial allocation                β”‚
β”‚ Environment       prod/dev/test        Environment identification         β”‚
β”‚ Owner             team@company.com     Accountability                      β”‚
β”‚ Project           ProjectAlpha         Project tracking                    β”‚
β”‚ Application       inventory-api        Application identification         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

OPTIONAL TAGS (recommended):
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Tag Name          Example Value        Purpose                             β”‚
β”‚ ────────          ─────────────        ───────                             β”‚
β”‚ Department        Engineering          Organizational unit                 β”‚
β”‚ BusinessUnit      Retail               Business alignment                  β”‚
β”‚ Compliance        HIPAA/PCI            Regulatory tracking                 β”‚
β”‚ DataClass         Confidential         Data classification                 β”‚
β”‚ EndDate           2024-12-31           Temporary resource cleanup          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

ENFORCEMENT VIA POLICY:
{
  "if": {
    "allOf": [
      { "field": "tags['CostCenter']", "exists": "false" },
      { "field": "type", "notEquals": "Microsoft.Resources/subscriptions" }
    ]
  },
  "then": {
    "effect": "deny"
  }
}

Learning Path

RECOMMENDED STUDY ORDER:
────────────────────────

Week 1: Foundations
β”œβ”€β”€ Read: Quick Reference (cost tools and comparisons)
β”œβ”€β”€ Do: Access Cost Management for your subscription
β”œβ”€β”€ Do: Create a basic budget with email alerts
└── Practice: Analyze last month's spend by resource type

Week 2: Deep Analysis
β”œβ”€β”€ Read: Cost Analysis & Visibility deep dive
β”œβ”€β”€ Do: Build custom cost views by tag
β”œβ”€β”€ Do: Set up cost exports to storage account
└── Practice: Create Power BI dashboard from exports

Week 3: Optimization
β”œβ”€β”€ Read: Cost Optimization deep dive
β”œβ”€β”€ Do: Review Azure Advisor recommendations
β”œβ”€β”€ Do: Identify and clean up unused resources
└── Practice: Calculate potential reservation savings

Week 4: Automation & Governance
β”œβ”€β”€ Read: Budgets & Alerts deep dive
β”œβ”€β”€ Read: Reservations & Savings Plans
β”œβ”€β”€ Do: Create budget with automation (Logic App)
β”œβ”€β”€ Review: Case studies
└── Practice: Design FinOps process for organization

Key Services Summary

Feature Description AWS Equivalent
Cost Analysis Interactive cost exploration Cost Explorer
Budgets Spending limits and alerts AWS Budgets
Advisor (Cost) Optimization recommendations Trusted Advisor + Compute Optimizer
Reservations 1-3 year capacity commitments Reserved Instances
Savings Plans Flexible compute commitment Savings Plans
Cost Exports Scheduled data exports Cost & Usage Reports
Cost Allocation Tag-based cost distribution Cost Allocation Tags

Quick Cost Optimization Checklist

IMMEDIATE WINS (Do this week):
──────────────────────────────
☐ Review Azure Advisor cost recommendations
☐ Identify and delete unused resources (orphaned disks, IPs)
☐ Right-size underutilized VMs (<5% CPU)
☐ Enable auto-shutdown for dev/test VMs
☐ Review storage tiers (move cold data to Cool/Archive)

SHORT-TERM (This month):
────────────────────────
☐ Purchase reservations for stable workloads
☐ Set up budgets with alerts at 80%, 100%
☐ Implement tagging policy for new resources
☐ Review hybrid benefit eligibility (Windows/SQL licenses)
☐ Consolidate Log Analytics workspaces

LONG-TERM (This quarter):
─────────────────────────
☐ Implement FinOps culture (cost reviews, showback)
☐ Automate resource cleanup for dev environments
☐ Evaluate Savings Plans for variable workloads
☐ Set up cross-team cost allocation
☐ Create executive cost dashboards

Next: Quick Reference | Back to Chapter 06: Infrastructure as Code


Author: Michel Abboud | AI-Assisted Content | APACHE 2.0 License