Cost management in Azure is the practice of seeing what your cloud is spending, predicting what it will spend, and putting guardrails so spend does not exceed the budget. The shift from on-premises capital expenditure to cloud operating expenditure changes the rhythm of the cost conversation. On-premises hardware was bought once, depreciated across multiple accounting periods, and the procurement team rejoined the discussion only at the next refresh cycle. Azure bills the meter every second a virtual machine is allocated, every gigabyte stored in a storage account, every gigabyte that egresses outside a billing boundary, every transaction on a managed database. The cost conversation therefore becomes a continuous operational discipline rather than a periodic procurement event.
There are three frames the foundational reader needs to keep straight. The first is the billing model: which actions generate a line item on the invoice (resource type, region, SKU, time deployed, transactions executed). The second is the responsibility model: who in the organization owns each line item, and how cost is allocated across engineering teams, security teams, business units, and customer programs through tags and management groups. The third is the protection model: which controls stop a well-meaning operator from deleting a paid-for resource by mistake, and which controls stop runaway spend from spinning up resources nobody approved.
The toolchain that maps to those three frames sits across this chapter. Microsoft Cost Management provides visibility and forecasting. Tags allocate cost across teams and projects. Azure Policy enforces what may be deployed and where. Resource locks protect specific resources from delete or modify operations. Azure Service Health surfaces Azure-side incidents that affect both availability and billing credits. The Pricing Calculator and the TCO Calculator answer the up-front estimation question (how much will the new design cost, or how does the on-premises footprint compare to Azure), not the run-time control question.
| Cost-management responsibility | Owning role | Primary Azure tool | Out-of-band tool |
|---|---|---|---|
| Estimate cost of a NEW design | Architect, FinOps | Pricing Calculator | Spreadsheet or Excel template |
| Compare on-prem to Azure | Migration lead, CFO sponsor | TCO Calculator | Engagement with Microsoft FastTrack |
| Analyze ACTUAL spend | FinOps, finance controller | Microsoft Cost Management cost analysis | Exported CSV in Power BI |
| Drive budgets and alerts | FinOps, engineering manager | Microsoft Cost Management budgets | Action group with email or webhook |
| Allocate spend to teams/projects | Engineering manager, finance | Tags, management group hierarchy | Custom chargeback report |
| Stop unauthorized SKUs | Cloud governance | Azure Policy (Deny, Audit) | Manual review at deployment |
| Protect deployed resources from delete | Cloud operations | Resource locks (CanNotDelete) | Backup retention policy |
| Lock resource configuration | Cloud operations | Resource locks (ReadOnly) | Change-management process |
| Recover SLA credits for Azure incidents | FinOps, operations | Azure Service Health | Support ticket through Azure Support |
Resource locks
Resource locks are the simplest protection mechanism Azure offers and the one most often overlooked by foundational candidates. A resource lock attaches to a subscription, a resource group, or an individual resource and prevents the locked subject from being modified or deleted, regardless of which role assignment the caller holds. A subscription Owner cannot delete a resource group that carries a CanNotDelete lock without first removing the lock. A Contributor cannot resize a virtual machine that carries a ReadOnly lock without first removing the lock. The lock is a hard guardrail at the resource provider, not a soft policy that someone may waive at deployment time.
Azure exposes two lock levels:
- CanNotDelete (shown in the portal as Delete) lets authorized users read and modify a resource but blocks every delete operation. This is the everyday lock for any resource the business cannot afford to lose by accident: production databases, Recovery Services vaults that hold backup copies, Microsoft Entra ID-linked Key Vaults that hold encryption keys, storage accounts that hold immutable audit logs.
- ReadOnly is stricter. Authorized users can list and read the resource but cannot modify it (no SKU change, no certificate rotation, no firewall rule update). ReadOnly also blocks any operation the underlying resource provider treats as a write, so applying ReadOnly to a resource group can silently block unrelated activity such as listing storage account keys, because the underlying API for that operation is a POST.
Locks inherit downward. A lock at the subscription scope applies to every resource group and every resource within. A lock at the resource group scope applies to every resource in the group. When multiple locks apply at multiple scopes, the strictest lock wins at any given scope. If a resource group carries a CanNotDelete lock and a single resource inside the group carries a ReadOnly lock, that resource is ReadOnly while its siblings remain merely undeletable.
Two common traps. First, resource locks are about resource-manager operations, not about data-plane access. A CanNotDelete lock on a storage account does not stop a user with the right role from deleting blobs inside the account; it only stops the storage account resource itself from being removed. Blob-data protection comes from soft delete, immutability policies, and role assignments, not from a lock. Second, locks apply to every authorization principal, including the subscription Owner, the User Access Administrator, and even the account that created the lock. Removing a lock requires the Microsoft.Authorization/locks/* permission, which by default sits in the Owner and User Access Administrator built-in roles only.
💡 Exam Trap: A CanNotDelete lock on a resource group prevents deletion of the resource group and of any resource inside it, but it does NOT prevent reading or modifying those child resources. ReadOnly is required to block modification.
⚠️ Anti-Pattern: Applying a ReadOnly lock to a storage account and then being surprised that key rotation, soft delete configuration, and account-key list operations stop working. ReadOnly is genuinely read-only at the resource provider, including operations the portal hides as routine reads. Reserve ReadOnly for resources whose configuration must not drift in production.
Azure Service Health
Azure Service Health is Microsoft's first-party view of Azure platform health, scoped to the subscriptions and regions your account actually uses. It sits inside the Azure portal under Service Health and surfaces four channels:
- Service issues. Active incidents on Azure services in regions where your subscription has resources. Each incident carries a tracking ID, an impact statement, a mitigation status, and a downloadable communication record that operations can attach to an internal postmortem or to a billing credit request.
- Planned maintenance. Scheduled maintenance windows for Azure-managed components that may briefly interrupt your workload, with the window, the affected services, and the recommended customer action.
- Health advisories. Service-level changes that require customer action even when they are not outages: deprecation notices, certificate updates, library version retirements, regional capacity adjustments.
- Security advisories. Service-level security notifications that affect your tenant: vulnerability disclosures, mandatory patches, certificate revocations.
The complementary public view is the Azure Status page at status.azure.com, which shows global health for every service in every region but is not filtered to your subscriptions. Foundational candidates often confuse the two surfaces. The public Azure Status page is for anyone, while Azure Service Health inside the portal is the subscription-aware source of truth when you need an incident tracking ID for an SLA credit request.
Service Health alerts close the cost loop. You can configure an action group (email, SMS, push notification, webhook, Logic App, Azure Function) to fire when an incident matches your subscription and region filter, so the on-call engineer learns about an Azure-side incident from Service Health rather than from a customer ticket. Because SLA credits are time-bound (the claim window typically closes within a defined number of days after incident resolution), capturing the incident reference into your runbook quickly matters for cost recovery.
| Service Health channel | What it covers | Typical lead time | Action group recommended |
|---|---|---|---|
| Service issues | Active Azure outages affecting your resources | None: the incident is already live | Yes, page on-call |
| Planned maintenance | Upcoming maintenance windows | Days to weeks | Yes, route to change management |
| Health advisories | Deprecations, version retirements | Weeks to months | Yes, route to engineering backlog |
| Security advisories | Mandatory security actions | Hours to weeks | Yes, route to security operations |
💡 Exam Trap: Azure Service Health is SCOPED to your subscriptions and to the regions where you have resources. The PUBLIC Azure Status page (
status.azure.com) shows global health for every service in every region. If a stem asks which tool gives a subscription-aware view of Azure-side incidents, the answer is Azure Service Health, never the public status page.
🎯 Scenario: Finance asks why the monthly invoice never showed the SLA credit for last quarter's regional storage incident. Operations remembers the incident but did not capture the Service Health tracking ID at the time the incident was active. The runbook lesson, captured for the next time, is that every incident matched by a Service Health alert must end with the communication record being downloaded and pinned to a ticket, so the credit request has the evidence it needs before the claim window closes.
📊 Limit: Removing a resource lock requires the
Microsoft.Authorization/locks/*permission. Only the Owner and User Access Administrator built-in roles include that permission by default; other roles, including Contributor, do not.
Decision Anchor. Choose a CanNotDelete lock when the goal is to stop accidental deletion while still allowing day-to-day configuration changes on the resource. Choose a ReadOnly lock when the resource is in a steady-state configuration that must not drift, and the operations team understands that no portal or API write will succeed against it until the lock is removed. Choose Azure Service Health when you need a subscription-scoped view of Azure-side incidents with tracking IDs and downloadable communication records; choose the public Azure Status page only when you need a global, anonymous view of platform health.
