0
0
AzureConceptBeginner · 3 min read

What Is Azure Subscription: Simple Explanation and Use Cases

An Azure subscription is like a container that holds your cloud resources and services in Microsoft Azure. It defines the billing, access control, and limits for those resources, helping you organize and manage your cloud usage.
⚙️

How It Works

Think of an Azure subscription as a folder where you keep all your cloud stuff, like virtual machines, databases, and storage. This folder helps you keep track of what you use and how much it costs. Just like a phone plan controls your calls and data, the subscription controls your access and billing for Azure services.

Each subscription has a unique ID and is linked to an account that pays for the services. You can have multiple subscriptions to separate projects or teams, making it easier to manage permissions and budgets. When you create resources, you place them inside a subscription, so Azure knows who owns them and how to charge for them.

💻

Example

This example shows how to list all Azure subscriptions you have access to using Azure CLI, a command-line tool. It helps you see your subscriptions and their details.

bash
az login
az account list --output json
Output
[ { "cloudName": "AzureCloud", "id": "12345678-1234-1234-1234-123456789abc", "isDefault": true, "name": "My Subscription", "state": "Enabled", "tenantId": "87654321-4321-4321-4321-cba987654321", "user": { "name": "user@example.com", "type": "user" } } ]
🎯

When to Use

Use an Azure subscription whenever you want to organize and control your cloud resources. For example, if you have different projects or departments, you can create separate subscriptions to keep their resources and costs separate.

Subscriptions are also useful for managing access. You can give different people or teams permission to work only within certain subscriptions. This helps keep your cloud environment secure and organized.

In real life, companies use subscriptions to separate development, testing, and production environments, so changes in one do not affect the others.

Key Points

  • An Azure subscription holds and organizes your cloud resources.
  • It controls billing and access permissions.
  • You can have multiple subscriptions for different projects or teams.
  • Subscriptions help separate environments like development and production.

Key Takeaways

An Azure subscription is a container for managing cloud resources and billing.
You can create multiple subscriptions to organize projects and control access.
Subscriptions help separate environments and manage costs effectively.