Skip to main content

Challenge 19: Azure Cost Management & Pricing Calculator

Estimated Time

25-35 min | Cost: Free | Domain: Management & Governance (30-35%)

Exam skills covered

  • Describe factors that can affect costs in Azure
  • Compare the Pricing Calculator and the Total Cost of Ownership (TCO) Calculator
  • Describe Cost Management capabilities (cost alerts, budgets, recommendations)
  • Describe the purpose of tags

Overview

Understanding Azure costs is critical for any organization. Costs are affected by resource type, usage, region, and data transfer. Azure provides tools to estimate, monitor, and optimize spending: the Pricing Calculator (estimate future costs), TCO Calculator (compare on-premises vs. cloud), and Cost Management (monitor and control current spending).

Explore

Task 1: Understand cost factors

FactorImpact on costExample
Resource typeDifferent services have different pricingVMs cost more than storage
RegionPrices vary by regionEast US may differ from West Europe
Usage/consumptionMore usage = higher costRunning a VM 24/7 vs. 8 hours/day
Data transferInbound free, outbound costs moneyDownloading data FROM Azure
Tier/SKUHigher tiers cost morePremium SSD vs. Standard HDD
Reserved capacityCommitment = discount1-year or 3-year reservation

Task 2: Use the Pricing Calculator

  1. Open azure.microsoft.com/pricing/calculator
  2. Add a Virtual Machine:
    • Region: East US, Linux, D2s v3
    • Note the monthly cost
  3. Add a Storage Account:
    • LRS, Hot tier, 100 GB
    • Note the cost (much cheaper than VMs!)
  4. Add an App Service:
    • Basic tier B1
    • Note the monthly cost
  5. Compare total — observe that VMs are usually the largest cost

Task 3: Explore Cost Management

  1. In Azure Portal, search for Cost Management
  2. Explore these sections:
    • Cost analysis: View spending by service, resource group, location
    • Budgets: Set spending limits with alerts
    • Advisor recommendations: Cost-saving suggestions
    • Alerts: Get notified when spending exceeds thresholds
  3. If your account is new, data may be minimal — that's OK

Task 4: Understand tags for cost tracking

Tags are name-value pairs you attach to resources for organization:

Tag keyTag valuePurpose
EnvironmentProductionIdentify production resources
CostCenterIT-1234Track costs by department
Owneralice@contoso.comKnow who owns the resource
ProjectWebApp-v2Associate costs with projects

Tag rules:

  • Tags are NOT inherited (parent RG tags don't automatically apply to resources)
  • You can have up to 50 tags per resource
  • Tags enable cost filtering in Cost Management
  • Azure Policy can enforce tag requirements

Task 5: Ways to reduce costs

StrategyDescriptionSavings
Reserved InstancesCommit to 1 or 3 yearsUp to 72% off
Azure Hybrid BenefitUse existing Windows/SQL licensesUp to 40% off
Spot VMsUse unused capacity (can be evicted)Up to 90% off
Right-sizingMatch VM size to actual usageVaries
Auto-shutdownStop dev/test VMs at nightUp to 70% off
Azure AdvisorFollow cost recommendationsVaries
Azure CLI Alternative
# List tags on a resource group
az group show --name rg-az900-learning --query tags --output table 2>/dev/null || echo "No tags set"

# Add a tag to a resource group
az group update --name rg-az900-learning --tags Environment=Learning CostCenter=Training 2>/dev/null || echo "Create the RG first in Challenge 08"

Key Concepts

ConceptDescription
Pricing CalculatorEstimate costs for new Azure deployments
TCO CalculatorCompare on-premises costs with Azure costs over time
Cost ManagementMonitor, allocate, and optimize Azure spending
BudgetSet spending limits with automatic alerts
TagsKey-value pairs for organizing and tracking resource costs
Reserved InstancePre-commit to 1-3 year term for significant discount
Azure AdvisorPersonalized recommendations including cost savings

Knowledge Check

1. Which Azure tool should you use to estimate the monthly cost of a new deployment before creating any resources?

2. Data transfer INTO Azure (ingress) is:

3. What is the purpose of resource tags in Azure?

4. A company wants to reduce VM costs by committing to a specific VM size for 3 years. What pricing option provides the best discount?

5. Are resource tags automatically inherited from a resource group to its resources?

Learn More