🌳 Azure Resource Hierarchy

📌 Overview

Understanding how Azure organizes resources is critical for billing, access control, and policy management. There form levels of scope in the Azure Resource Hierarchy.

Management Groups > Subscriptions > Resource Groups > Resources


1. The Four Levels

🧱 Level 1: Resources

The individual instances of services you create.

📂 Level 2: Resource Groups (RGs)

A logical container that holds related resources for an Azure solution.

💳 Level 3: Subscriptions

A logical unit of Azure services that links to an Azure account. It is a boundary for billing and access control.

🏢 Level 4: Management Groups

Containers that help you manage access, policy, and compliance across multiple subscriptions.


🌲 Visualizing the Hierarchy

                    +------------------------------+
                    |  Root Management Group       |
                    +------------------------------+
                                   |
                   +-------------------------------+
                   |     HR Management Group       |
                   +-------------------------------+
                      /                         \
                     /                           \
          +-----------------------+      +-----------------------+
          |  HR Dev Subscription  |      |  HR Prod Subscription |
          +-----------------------+      +-----------------------+
                     |                              |
            +-----------------+            +-----------------+
            |   RG-App-Dev    |            |   RG-App-Prod   |
            +-----------------+            +-----------------+
               /         \                    /         \
        +--------+   +--------+        +--------+   +--------+
        |   VM   |   | S3 Acc |        |   VM   |   | SQL DB |
        +--------+   +--------+        +--------+   +--------+

1767940729762

🔒 Policy & Access Inheritance

A key concept in Azure is Inheritance. Settings applied at a higher level trickle down.

  1. RBAC (Access Control):

    • If you give a user "Contributor" role on the Subscription, they automatically have "Contributor" on every Resource Group and Resource inside it.
  2. Azure Policy:

    • If you apply a policy "Require Tag: CostCenter" on a Management Group, every Resource Group and Resource created in any child Subscription must have that tag.

1767940820806

💡 Exam Tips for AZ-900