TExcelTAD
Home › Azure & Google Cloud for AWS Users › Pricing, Discounts and Cost Control

Pricing, Discounts and Cost Control

All three clouds bill on-demand per second or per hour, charge for storage per GB-month and for data leaving the cloud per GB, and discount commitments. The tools, the discount programmes and a few billing models differ. Prices change often and differ by region, so this lesson teaches the structure and uses clearly made-up numbers. Always check the providers' current pricing pages and calculators.

On AWS this is… On-Demand, Savings Plans, Reserved Instances and Spot, Cost Explorer, Budgets and cost allocation tags, from Pricing and Cost Management and EC2 Pricing Models.

Side by side

AWS Azure Google Cloud
Calculator AWS Pricing Calculator Azure pricing calculator Google Cloud Pricing Calculator
Cost views Cost Explorer Cost Management (any scope: management group, subscription, resource group) Cloud Billing reports, BigQuery billing export
Budgets AWS Budgets Cost Management budgets (with action groups) budgets on a billing account, alerts to email or Pub/Sub
Commitment discounts Savings Plans, Reserved Instances Azure savings plan for compute, Reservations committed use discounts (spend-based and resource-based)
Automatic discounts — — sustained use discounts on some machine families
Spare capacity Spot Spot VMs Spot VMs
Bring your own licence BYOL (limited) Azure Hybrid Benefit (Windows Server, SQL Server, RHEL/SLES) BYOL on sole-tenant nodes
Free tier free tier offers free account offers and always-free services Free Trial credit and Free Tier products
Advice Trusted Advisor, Compute Optimizer Azure Advisor Recommender (idle VMs, right-sizing, commitments)
Raw data Cost and Usage Report cost exports detailed billing export to BigQuery

The details of each programme (percentages, terms, which services they cover, free-tier limits) change; read the current terms before committing.

Model: one workload, three clouds, illustrative prices

The numbers below are invented to show how a comparison is built, not what anything costs. A real comparison uses each provider's calculator for your region, with your actual sizes.

python · try it yourself
# ILLUSTRATIVE unit prices (USD), invented for this example, NOT real list prices
PRICES = {
    "aws":   {"vm_hour": 0.096, "gb_disk": 0.08, "gb_object": 0.023, "gb_egress": 0.09, "db_hour": 0.36},
    "azure": {"vm_hour": 0.096, "gb_disk": 0.075, "gb_object": 0.020, "gb_egress": 0.087, "db_hour": 0.37},
    "gcp":   {"vm_hour": 0.097, "gb_disk": 0.10, "gb_object": 0.020, "gb_egress": 0.12, "db_hour": 0.35},
}
COMMIT_DISCOUNT = {"aws": 0.30, "azure": 0.30, "gcp": 0.28}   # illustrative 1-year commitment
HOURS = 730

workload = {"vms": 4, "disk_gb": 4 * 100, "object_gb": 2000, "egress_gb": 1500, "db_instances": 2}

def monthly(cloud, committed):
    p = PRICES[cloud]
    compute = workload["vms"] * p["vm_hour"] * HOURS
    if committed:
        compute *= 1 - COMMIT_DISCOUNT[cloud]
    parts = {
        "compute": compute,
        "disks": workload["disk_gb"] * p["gb_disk"],
        "objects": workload["object_gb"] * p["gb_object"],
        "egress": workload["egress_gb"] * p["gb_egress"],
        "database": workload["db_instances"] * p["db_hour"] * HOURS,
    }
    return parts

print(f"{'cloud':<7}{'compute':>9}{'disks':>8}{'objects':>9}{'egress':>8}{'database':>10}{'total':>9}{'committed':>11}")
for cloud in PRICES:
    on_demand = monthly(cloud, False)
    committed = sum(monthly(cloud, True).values())
    cells = "".join(f"{v:>{w}.0f}" for v, w in zip(on_demand.values(), (9, 8, 9, 8, 10)))
    print(f"{cloud:<7}{cells}{sum(on_demand.values()):>9.0f}{committed:>11.0f}")
cloud    compute   disks  objects  egress  database    total  committed
aws          280      32       46     135       526     1019        935
azure        280      30       40     130       540     1021        937
gcp          283      40       40     180       511     1054        975

With invented prices the totals land within a few per cent of each other, which is typical of real comparisons for plain VMs and storage. What actually moves the bill:

  • Architecture beats unit price. The database line is the biggest; a right-sized or serverless option changes the total more than any provider switch.
  • Egress and cross-zone/cross-region traffic are where clouds differ most, and they are easy to forget.
  • Commitments apply only to the steady part of the load; commit to the baseline, not the peak.

Cost controls to set up on day one

Azure, sample session: a monthly cost budget on a resource group. Add alert thresholds and recipients (notifications) to it in Cost Management, or define the whole budget, notifications included, in Bicep or Terraform (azurerm_consumption_budget_resource_group). The az consumption command group is still marked preview.

bash
az consumption budget create --budget-name shop-dev-monthly --amount 300 --time-grain monthly \
    --start-date 2026-11-01 --end-date 2027-10-31 --category cost --resource-group rg-shop-dev-app

Google Cloud, sample session: a budget on the billing account, filtered to one project, alerting at 50%, 90% and 100%.

bash
gcloud billing budgets create --billing-account=0X0X0X-0X0X0X-0X0X0X \
    --display-name="shop-dev monthly" --budget-amount=300USD \
    --filter-projects=projects/shop-dev-4821 \
    --threshold-rule=percent=0.5 --threshold-rule=percent=0.9 --threshold-rule=percent=1.0

Neither budget stops spending by itself; budgets alert. To act automatically, connect them to automation: an action group running a runbook on Azure, or a Pub/Sub notification triggering a function on Google Cloud (Google documents a pattern that disables billing on a project, which shuts down its paid services; use it only for sandboxes).

Other day-one habits:

  • Tags/labels for env, app, owner, cost-center (Resource Groups, Tags and Labels), enforced by policy.
  • Export billing data (Azure cost exports to storage, Google's BigQuery billing export) so you can query it later; Google's export only contains data from when you turned it on.
  • Clean up forgotten resources: unattached disks, old snapshots, idle public IPs, stopped-but-allocated Azure VMs, unused load balancers, registries without cleanup policies.

Test yourself

Which Google Cloud discount applies automatically, without any commitment, to some machine families?

  1. Committed use discounts
  2. Sustained use discounts
  3. Reservations
  4. Hybrid Benefit

Does a budget on Azure or Google Cloud stop resources when the amount is reached?

  1. Yes, always
  2. No, budgets alert; automatic action needs extra automation
  3. Only in production
  4. Only for VMs

What is Azure Hybrid Benefit?

  1. A free tier
  2. Using existing Windows Server/SQL Server (and some Linux) licences to lower Azure prices
  3. A Spot discount
  4. A support plan