D1 · Cloud Concepts

CapEx vs OpEx — Cloud's financial model

The CapEx/OpEx decision isn't technical — it's financial and strategic. Understanding the consumption model means understanding why cloud changed the economics of technology.

CapEx and OpEx — exact definitions

— Capital Expenditure

Capital expenditure: acquiring physical or intangible assets that will generate value for more than a year. Recorded as an asset on the balance sheet and amortized/depreciated over its useful life.

Accounting typeAsset → depreciates over N years
P&L impactOnly annual depreciation (not the total)
Cash flowLarge initial outflow, then zero
ApprovalRequires board / CFO approval
IT exampleBuying $500k of servers for a datacenter
Typical useful life3–5 years for server hardware

— Operating Expenditure

Operating expense: day-to-day costs to keep the business running. Recorded directly as an expense in the period it occurs (immediate P&L). No amortization.

Accounting typeExpense → impacts P&L immediately
P&L impactFull amount for the period (month/quarter/year)
Cash flowSmall, periodic outflows
ApprovalWithin operating budget (more agile)
IT exampleMonthly Azure bill of $10,000/month
Tax advantageDeductible in the year it occurs

An analogy so you never forget it

CapEx = Buying a car

You pay $30,000 today. The car is yours. You depreciate it over 5 years = $6,000/year on the books. If you don't use it, you still paid $30k.

OpEx = Uber/car rental

You pay $50 for the ride. You only pay when you use it. If you don't need to go anywhere, you don't pay. Scales instantly.

Real financial and accounting implications

How each model impacts a company's financial statements.

ConceptCapEx ()OpEx (Azure)
Balance sheetThe asset appears as "Property, plant and equipment." Increases total assets.No asset recorded. Doesn't appear on the balance sheet.
Income statement (P&L)Only annual depreciation (e.g., $100k/year if you bought $500k over 5 years)The full expense for the period (e.g., $8k/month = $96k/year)
Cash flowLarge outflow in Year 1. Years 2–5: maintenance only. Predictable long-term.Small, regular outflows. Variable based on usage. Predictable short-term.
Tax advantageDeduction spread across years (depreciation). Lower tax benefit in year 1.Full deduction in the year of the expense. Higher immediate tax benefit.
Impact on debt / leverageIf financed with debt, increases liabilities. Can affect financial ratios.No additional debt. Better leverage ratios.
EBITDADepreciation adds back to EBITDA (excluded from earnings before D&A)Operating expense reduces EBITDA directly
Flexibility for changesLow. Purchased hardware is hard to reduce or change.High. Reduce or stop services at any time.

The CFO's angle

For many CFOs, moving IT to OpEx is attractive because: (1) it eliminates large capital outflows that affect the balance sheet, (2) it improves return-on-assets (ROA) metrics by not having IT assets depreciating, (3) it increases financial agility — you can grow or reduce spending without long-term commitments.

Consumption model in Azure — OpEx in practice

Azure implements OpEx through the consumption model: you pay exactly for what you use, with second-level granularity in many services.

How consumption is measured in Azure

Virtual MachinesPer hour of compute

VM B2s = $0.0416/hour. Powered off = $0/hour (only pays for disk)

Azure StoragePer GB/month + operations

LRS Blob: $0.018/GB/month + $0.004 per 10k operations

Azure SQL DatabasePer vCore-hour or DTU/hour

General Purpose 2vCore: $0.3716/hour. Paused = minimum (serverless)

Azure FunctionsPer execution + GB-second

First 1M executions/month: FREE. Then $0.20 per M executions

Azure BandwidthPer GB of egress

First 5 GB/month free. Then $0.087/GB (zone 1)

Tools to predict and control costs

Azure Pricing Calculator

azure.microsoft.com/pricing/calculator

Estimate before creating resources. Combines services, regions, and configurations. Exports budget as PDF/Excel.

Before migrating or starting a new project

+ Billing

Portal → Cost Management

Analysis of actual spend. Breakdowns by subscription, resource group, tag, service. Historical trends.

Continuous monthly monitoring of actual spend

Azure Budgets and Alerts

Portal → Cost Management → Budgets

Set a monthly/quarterly budget and get alerts at 70%, 80%, 90%, 100%. Doesn't stop resources automatically by default.

To avoid bill surprises

Azure Advisor — Costs

Portal → Advisor

Automatic recommendations: underused VMs, Reserved Instances where worthwhile, orphaned disks, unused IPs.

Periodic (monthly) spend optimization

Real cost comparison — 5 years

Mid-size company: 50 servers, 500 users, standard workload. Not a huge enterprise, not a startup.

On-Premises (CapEx)

Initial hardware (50 servers)$750,000—
Networking (switches, firewalls)$100,000$20,000/year (upgrades)
OS licenses (Windows Server)$50,000$15,000/year
Datacenter space / colocation$50,000$50,000/year
Electricity + cooling$20,000$20,000/year
Ops staff (3 sysadmins)$300,000$300,000/year
Maintenance + insurance$30,000$30,000/year
Year 1 total:$1,300,000
5-year total:$2,620,000

Year 5: hardware depreciated, refresh cycle = another $750k

Azure (OpEx / Consumption)

Equivalent VMs (50 x B4ms)$200,000$200,000/year
Storage + Managed Disks$25,000$25,000/year
Networking (VNet, LB, VPN)$15,000$15,000/year
SQL, licensing included (PaaS)$40,000$40,000/year
Backup, monitoring$10,000$10,000/year
Staff (1 cloud engineer)$120,000$120,000/year
Initial migration (one-time)$80,000—
Year 1 total:$490,000
5-year total:$2,050,000

With 3-year Reserved Instances on compute: additional ~35% savings

Conclusion of the analysis

Year 1

Azure is ~62% cheaper. The large upfront investment in on-premises hardware is the dominant factor.

Years 1–5 (total)

Azure is ~22% cheaper in this scenario. The gap narrows over time as hardware amortizes.

Year 6+

On-premises can be cheaper IF the workload is stable and predictable. But hardware needs a refresh (new CapEx cycle).

Traps: when cloud is more expensive

The AZ-900 does NOT say cloud is always cheaper. These are the situations where on-premises can win.

Stable 24/7 workloads with no variation

If you have a database server running at 80% CPU constantly, with no spikes, every day of the year — the consumption model gives you no advantage. You pay the same amount always. On-premises can be cheaper because you amortize the hardware.

Real example

A SAP ERP server that runs exactly the same on Monday at 9am as on Saturday at 3am.

Solution/mitigation

For this case: Reserved Instances in Azure (up to 72% discount with a 1-3 year commitment).

No active cost optimization

Azure without active management can be extremely expensive. VMs nobody shuts down at night, orphaned disks from deleted resources, accumulating snapshots, unused public IPs — it all adds up.

Real example

A company migrates 50 VMs to Azure via "lift and shift" without rightsizing. Pays for D8s_v3 when it needed B2s. Spends 4x more than necessary.

Solution/mitigation

FinOps: Azure Cost Management + Azure Advisor + a culture of shutting down non-productive resources outside business hours.

Unexpected egress (data transfer out)

Transferring data out of Azure (egress) costs money. The first 5 GB/month are free. Then ~$0.087/GB. For applications that move terabytes of data out of Azure (e.g., large-scale content distribution), this cost can be significant.

Real example

A streaming app serving 50 TB/month of video to users → egress cost ~$4,000/month in bandwidth alone.

Solution/mitigation

Azure CDN reduces egress costs. Inbound (data coming into Azure) is free.

Reserved Instances — CapEx inside cloud

Azure offers a hybrid model: you can commit to 1 or 3 years of usage and get massive discounts. Technically this comes close to the CapEx model within cloud.

(PAYG)

No commitment. Pay by the hour. More expensive per unit.

Savings: 0%

Development, testing, unpredictable workloads

Reserved — 1 year

1-year commitment. Upfront or monthly payment.

Savings: ~40% vs PAYG

Stable workloads that have run unchanged for 6+ months

Reserved — 3 years

3-year commitment. Bigger discount, less flexibility.

Savings: ~60–72% vs PAYG

Stable core infrastructure (DBs, AD, critical servers)

Are Reservations CapEx or OpEx?

An interesting accounting dilemma: if you pay for a 3-year Reserved Instance upfront ($10,000), many accountants treat it as CapEx (upfront capital commitment). If you pay monthly even though it's "reserved," some treat it as OpEx. The AZ-900 mentions Reservations as a way to reduce costs without going deep into the accounting classification — but knowing this sets apart those who truly understand the topic.

Did you get this topic?

Test what you just learned

A company migrates its infrastructure to Azure to eliminate purchasing physical servers. How does its spending model change?

Ready to test "CapEx vs OpEx"?

Put what you learned to the test with original AZ-900 exam questions.

Start AZ-900 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.