Resource group

What it is

A resource group is a logical container for Azure resources that are deployed and managed together for a specific solution. Each resource belongs to exactly one resource group, and a resource group lives inside exactly one subscription.

Why it exists

Instead of managing every resource in isolation, you group the resources of an application/lifecycle into one container so you can deploy, update, delete, monitor, and secure them as a unit — and apply RBAC and Azure Policy at that scoped boundary.

Key ideas

  • One place, one owner — a resource can be in only one RG (but can later be moved between RGs/subscriptions).
  • RG location ≠ resource locations. The RG’s region is where the RG’s metadata is stored; the resources inside it can be in any region. This is a classic trap.
  • Lifecycle unit — deleting a RG deletes all resources inside it (a boundary of operation, not of geographic data residency).
  • Deployment scopeARM deployments and templates/Bicep target a RG.
  • Group by lifecycle + environment, not by resource type (that’s a common anti-pattern — mixing all VMs in one RG complicates lifecycle).

How it fits (diagram)

resource-group - Microsoft diagram

Diagrams courtesy of Microsoft Learn / Azure docs: azure-resource-manager/management/manage-resource-groups-portal

Exam notes

  • RG location is where metadata sits — the RG itself is not a physical place and stores no resources’ data.
  • Deleting a RG deletes everything inside it.
  • Move of a resource across RGs/subscriptions is possible but has constraints (recreate vs move, some resources can’t move).
  • Use RG to scope RBAC assignments and policies at an application boundary.

Path MOC · subscription · arm · scope · resource-tags · azure-policy

📘 Source: Microsoft Learn — Resource Group