Lesson 6 of 6 Azure Core Architectural Components

Understanding Management Groups and the Azure Resource Hierarchy

This lesson explains management groups, their limits, and the four-level hierarchy of management groups, subscriptions, resource groups and resources, including inheritance.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the purpose and limits of management groups.
  • Describe the four levels of the Azure hierarchy in order.
  • Explain which settings are inherited down the hierarchy.

Management groups

An organization with many subscriptions needs an efficient way to manage access, policies and compliance for them. Management groups provide a level of scope above subscriptions. Subscriptions are placed in management groups, and the governance conditions applied to a management group, such as Azure Policy assignments and Azure role assignments, are inherited by all of the subscriptions and resources within it, including subscriptions added later. Management groups can be nested, so the hierarchy can reflect the organization's structure.

Important facts about management groups:

  • Each directory has a single top-level root management group, and all other management groups and subscriptions fold up to it.
  • A directory can contain up to 10,000 management groups.
  • The tree can be up to six levels deep, not counting the root level or the subscription level.
  • Each management group and subscription can have only one parent, but a management group can have many children.
Fill in the value

Management group limits

Exam skills 2.1.6

Recall the limits that shape a management group hierarchy.

Log in to try this activity Interactive activities are free with an account.

The four-level hierarchy

Azure's management infrastructure forms a hierarchy of four levels. The following sequence shows each level from the top down and what it is used for.

  1. Management groups

    Organize subscriptions and apply governance to many subscriptions at once.

  2. Subscriptions

    Group resource groups and provide billing and access-control boundaries.

  3. Resource groups

    Group resources that share a lifecycle so that they are managed together.

  4. Resources

    The individual services: VMs, storage accounts, databases and so on.

Azure Policy assignments, Azure RBAC role assignments and budgets applied at one level flow down to the levels beneath, and so do resource locks, which start at the subscription level because a management group cannot be locked. Tags behave differently: they are not inherited by default, although Azure Policy can apply them to child resources.

The following diagram shows the four levels from the root management group down.

The four-level management hierarchy. Management groups organize subscriptions and apply governance to many of them at once. Subscriptions are billing and access-control boundaries that hold resource groups. Resource groups hold resources that share a lifecycle. Azure Policy and RBAC assignments, budgets and resource locks applied at one level flow down to the levels beneath; tags are not inherited by default.
Settings applied at one level flow down to the levels beneath.
Put in order

The Azure hierarchy

Exam skills 2.1.7

Order the four levels of Azure's management hierarchy from the top down.

Log in to try this activity Interactive activities are free with an account.

Using inheritance well

Inheritance lets governance be defined once at the right level. A policy that limits resources to European regions can be assigned to a management group that contains every European subscription, instead of to each subscription. A role that lets the security team read everything can be assigned at the root management group. A team's Contributor role can be assigned at its resource group, so it applies only there.

Because assignments flow downward, a lower level cannot remove an allow permission granted higher up through a role assignment. That is why permissions should be granted at the narrowest level that meets the need, and broad policies placed at the highest level that should share them.

Scenario questions

Assign at the right level

Exam skills 2.1.6 · 2.1.7

Choose the level at which each assignment belongs.

Log in to try this activity Interactive activities are free with an account.
Worked example

Applying governance at scale

A company has 40 subscriptions organized by department and creates new subscriptions every month. It must ensure that resources in every current and future subscription can be created only in two approved regions, with the least administrative effort. Where should the allowed-locations policy be assigned?

Assign the policy to a management group that contains all of the subscriptions, such as the root management group or a top-level group beneath it. Every subscription in the group inherits the assignment, and new subscriptions placed in the group inherit it automatically. Assigning the policy to each subscription would work today but would need repeating for every new subscription, and assigning it to resource groups would need even more assignments.

Check yourself

Are tags applied to a subscription inherited by its resources by default?

Show answer

No. Policies, role assignments and locks are inherited, but tags are not unless Azure Policy applies them.

Exam Tips

Remember for the exam

  • Hierarchy from top: management groups, subscriptions, resource groups, resources.
  • Policies, role assignments and locks are inherited downward; tags are not inherited by default.
  • Up to six levels of management groups below the root; each has one parent.
  • Apply governance to many subscriptions at once by assigning it to a management group.