Advanced FoundationLesson 7 of 9

Subscriptions and Billing Basics

Understand Azure subscription boundaries, billing basics, cost visibility, and budget controls at a practical starter level.

What is it? (Simple Explanation)

A subscription is both a billing container and an access boundary for Azure resources.

Why do we need it?

Real-world Analogy

Subscriptions are like separate corporate expense accounts. Teams can spend within assigned limits and reporting stays clear.

How it works (Technical)

Resources are created inside subscriptions. Cost analysis aggregates usage. Budgets trigger alerts at thresholds. Tags improve showback/chargeback-style reporting.

Visual Representation

Billing and Governance Flow
Subscription
Usage boundary
Resources
Generate consumption
Cost Analysis
Track trends
Budget Alerts
Prevent surprises

Commands / Syntax

Azure CLI
az account list --output table
az account set --subscription "My Subscription"
az consumption usage list --top 5

Example (Real-world Use Case)

A company runs separate subscriptions for Dev, Test, and Production so spending and access are isolated and easy to audit.

Hands-on

  1. List all subscriptions available to your account.
  2. Switch active subscription context.
  3. Open Cost Management and view last month trend.
  4. Create a budget alert threshold (for practice).
  5. Compare tagged vs untagged cost visibility.

Try It Yourself

Create a basic cost governance checklist for a new project subscription.

Debugging Scenario

Issue: Unexpected cost spike. Approach: identify top resource contributors, check recent deployments, verify autoscaling or misconfigurations.

Interview Questions

Beginner

What is an Azure subscription?

A billing and access boundary for resources.

Why split workloads across subscriptions?

For cost isolation, governance, and cleaner access control.

What is a budget alert?

A configured threshold notification when spend approaches limits.

Intermediate

How do tags help billing?

They classify spend by owner, environment, and cost center dimensions.

What causes cost surprises most often?

Oversized resources, forgotten environments, or unexpected scale-out.

Can one user access many subscriptions?

Yes, if granted RBAC permissions in each subscription.

Scenario-based

Dev team exceeded monthly budget.

Review top cost drivers, apply limits/policies, and right-size resources.

Finance needs project-wise spend report.

Use consistent tags and cost analysis filtering by tag values.

Resources created in wrong subscription.

Fix active subscription context and enforce guardrails in automation.

Real-world Usage

Subscription strategy is a practical governance lever that impacts both security boundaries and cloud cost management quality.

Summary

Treat subscriptions as organizational building blocks. Combine them with budgets and tagging for predictable cloud operations.