Skill 1.3.4

Manage resource groups

Key Concepts

Every resource belongs to exactly one resource group, and a resource group belongs to one subscription. The resource group has a region, which is where its metadata is stored, but it can hold resources in any region. Group resources that share a life cycle, because deleting a resource group deletes every resource in it. Role assignments, policies, locks and budgets set on a resource group apply to its contents, and resource groups cannot be nested or renamed.

Resources can be moved to another resource group or subscription. During the move, the source and target groups are locked against create, update and delete operations, but the resources keep running. Not every resource type supports moving, dependent resources must often move together (for example, a VM with its disks and network interface), and moving changes the resource ID, so scripts and role assignments on the resource must be updated. The portal's Validate step checks whether a move can succeed.