Subscriptions & Management Groups
resource groups · moving resources · subscription lifecycle · transfers · management groups
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Resource groups
- A resource group holds related resources, ideally with the same lifecycle. Each resource is in only one group, and can be moved between groups.
- The group's location stores metadata only. Resources in the group can be in other regions.
- Tags on a resource group are not inherited by its resources.
- Deleting a group deletes all resources in it. The deletion is irreversible and a group can't be recovered (some resources support soft delete).
- Before deleting a group, remove locks on its resources and the backup data. Deletes can also fail because of locks created by managed apps, or dependencies on resources in other groups.
- The permission to delete a group is the delete action on
Microsoft.Resources/subscriptions/resourceGroups. You don't need delete rights on each resource.
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create | az group create --name demoResourceGroup --location westus | New-AzResourceGroup -Name exampleGroup -Location westus |
| Delete | az group delete --name exampleGroup | Remove-AzResourceGroup -Name exampleGroup |
| List | az group list | Get-AzResourceGroup |
| Show | az group show --name exampleGroup | Get-AzResourceGroup -Name exampleGroup |
Moving resources
- A move changes only the resource's resource group (and its ID), not its region. Use Azure Resource Mover to change region.
- Cross-subscription moves need: both subscriptions active, in the same Microsoft Entra tenant, the destination registered for the resource provider, and a resource that supports move.
- Permissions:
Microsoft.Resources/subscriptions/resourceGroups/moveResources/actionon the source resource group andMicrosoft.Resources/subscriptions/resourceGroups/writeon the destination resource group. - Both groups are locked for up to 4 hours during a move. Existing resources keep running, but you can't create, delete or update resources in them.
- List only top-level parent resources. Child resources move with the parent.
- More than 800 resources in one request returns an error immediately.
- A resource group can't be moved to another subscription. Move its resources instead. Tags, role assignments and policies don't transfer.
- The resource ID changes, and role assignments on the moved resource are orphaned. Recreate them after the move.
- In a cross-subscription move, dependent resources must be in the same group and move together.
- A ReadOnly lock on the source or destination resource group or subscription blocks a move. Remove it first.
- Errors to recognize: MissingMoveDependentResources, RequestDisallowedByPolicy, MoveCannotProceedWithResourcesNotInSucceededState.
| Task | Azure CLI | PowerShell |
|---|---|---|
| Move | az resource move --destination-group newgroup --ids $webapp $plan (add --destination-subscription-id across subscriptions) | Move-AzResource -DestinationResourceGroupName <rg> -ResourceId <ids> (-DestinationSubscriptionId across subscriptions) |
| Validate without moving | az resource invoke-action --action validateMoveResources --ids <rgId> --request-body <json> | Invoke-AzResourceAction -Action validateMoveResources -ResourceId <rgId> -Parameters @{...} |
| Check tenant | az account show --subscription <s> --query tenantId | (Get-AzSubscription -SubscriptionName <s>).TenantId |
| Register a provider | az provider register --namespace Microsoft.Batch | Register-AzResourceProvider -ProviderNamespace Microsoft.Batch |
Subscription lifecycle
| State | What it means | Operations |
|---|---|---|
| Active (Enabled) | Normal | All |
| Past Due | Outstanding payment, still active. May become disabled | All |
| Warned | Will be disabled if not addressed | GET and DELETE only |
| Disabled | VMs deallocated, temporary IPs freed, storage read-only. Causes include expired credit, spending limit reached, a past-due bill. Ownership transfer is disabled | GET and DELETE; PUT, PATCH and POST are disabled |
| Expired | Cancelled. Can be reactivated | GET and DELETE only |
| Deleted | Subscription and all resources and data deleted | None |
- Create (Microsoft Customer Agreement): needs Owner or Contributor on the invoice section, billing profile or billing account, or the Azure subscription creator role on the invoice section. Subscriptions › Add › Basics, Advanced (directory, management group, owners), Tags, Review + create. Owners must be users or service principals of that directory, not guests.
- You can't provision subscriptions or resources in a Microsoft Entra B2B or Azure AD B2C tenant.
- Cancel: the subscription Owner can cancel. An account administrator without the Owner role can't. Cost Management + Billing › Subscriptions › Cancel. Billing stops immediately, VMs are deallocated and storage becomes read-only.
- After cancelling, the Delete option appears after 3 days (7 for field and partner subscriptions) and needs the Owner role. The subscription is deleted automatically 90 days after cancelling. To delete manually, first delete all resources, including hidden ones.
- Microsoft keeps data 30 to 90 days after a cancel. A cancelled pay-as-you-go subscription can be reactivated in the portal.
Transfers
| Transfer billing ownership | Change directory | |
|---|---|---|
| What it changes | Who is billed | Which Entra directory trusts the subscription. Not billing |
| Who | Account administrator (pay-as-you-go). For an Azure plan, Owner or Contributor on the invoice section | Owner on the subscription, plus an account that exists in both directories |
| Role assignments | Kept if Move subscription tenant is unchecked. All permanently removed if checked | All role assignments and custom roles permanently deleted |
| Notes | One request at a time, valid 15 days. Can't transfer to a Microsoft Entra B2B or Azure B2C tenant | Not supported for CSP subscriptions. Can take several hours to show |
- A subscription trusts exactly one directory. A tenant can be trusted by many subscriptions.
- After a directory change, re-create custom roles and role assignments. System-assigned managed identities break: disable and re-enable them, then re-create their role assignments. User-assigned identities must be deleted, re-created, attached and given roles again. Key Vault needs the tenant ID updated and its access policies removed and added again.
- Azure Policy objects can't be transferred. Export, import and reassign them.
- Back up before transfers:
az role assignment list --all --include-inherited --output json > roleassignments.json. - After a directory change, classic subscription administrators (Service Administrator and Co-Administrators) also lose access.
Management groups
- A directory supports up to 10,000 management groups. The tree can be up to six levels deep, not counting the root or subscription level. Each management group and subscription has one parent.
- Every directory has one root management group (display name Tenant root group, ID equal to the tenant ID). It can't be moved or deleted. New subscriptions land there by default.
- Nobody has access to the root group by default. A Global Administrator can elevate access.
- Azure Policy and RBAC assigned at a management group cascade to all descendants. The owner of a subscription can't change an inherited policy.
- All subscriptions in a management group must trust the same Entra tenant.
- The management group ID can't be edited after creation. The display name can change at any time. The first management group creation can take up to 15 minutes.
- Hierarchy settings (root only): Change default management group and Require authorization. By default any Entra user can create a management group. Changing the settings needs the Hierarchy Settings Administrator permissions.
- Delete: the group must have no child management groups or subscriptions. Needs write permission (Owner, Contributor or Management Group Contributor).
- Move a subscription or group: write on the child, role assignment write and delete on the child, and write on both the current and the target parent. These permissions aren't needed when the target or current parent is the root.
- Moves and changes can take up to 30 minutes to appear, because Azure Resource Manager caches the hierarchy.
- A custom role with an assignment can block moving a subscription out of the branch where the role is defined. A custom role can have only one management group in
AssignableScopes. Custom roles with DataActions can't be assigned at management group scope.
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create | az account management-group create --name 'Contoso' --display-name 'Contoso Group' (add --parent for a different parent) | New-AzManagementGroup -GroupName 'Contoso' -DisplayName 'Contoso Group' |
| Rename | az account management-group update --name 'Contoso' --display-name 'Contoso Group' | Update-AzManagementGroup -GroupId 'ContosoIt' -DisplayName 'Contoso Group' |
| Delete | az account management-group delete --name 'Contoso' | Remove-AzManagementGroup -GroupId 'Contoso' |
| List or show | az account management-group list | Get-AzManagementGroup |
| Add a subscription | az account management-group subscription add --name 'Contoso' --subscription <id> | New-AzManagementGroupSubscription -GroupId 'Contoso' -SubscriptionId <id> |
| Remove a subscription | az account management-group subscription remove --name 'Contoso' --subscription <id> | Remove-AzManagementGroupSubscription -GroupId 'Contoso' -SubscriptionId <id> |
| Move a group under another | az account management-group update --name 'Contoso' --parent ContosoIT | Update-AzManagementGroup -GroupId 'Contoso' -ParentId $parentGroup.id |
Azure PowerShell has no Az command to define the default management group or require authorization; use the REST API.
Roles on management groups
| Role | Can do |
|---|---|
| Owner | Everything, including assigning access and policy |
| Contributor | Create, rename, move and delete; can't assign access |
| Management Group Contributor | Create, rename and delete |
| Reader, Management Group Reader | Read only |
| Resource Policy Contributor | Assign policy |
| User Access Administrator | Assign access and policy |
Exam Tips
Tick each tip once you can answer it without looking.
“RG location is East US; can a resource in it be in West US?” → Yes: the group location is only metadata. Trap: resources don't have to match it.
“Move a VM to another subscription in the same tenant” → Move it with its dependent resources, with the destination registered for the provider. Trap: moving the VM alone.
“Move a resource to a subscription in a different tenant” → Not possible with Move: both subscriptions must be in the same tenant. Trap: the Move button.
“Permissions needed to move” → moveResources/action on the source group and write on the destination group. Trap: Reader isn't one of the listed permissions.
“During a move, users can't update a VM” → Both groups are locked for up to 4 hours. Trap: a failed move.
“Move a resource group to another subscription” → Not possible: move its resources instead.
“Scripts fail after a move” → The resource ID changed. Trap: the region changed.
“A user loses access after a move” → The role assignment on the moved resource was orphaned: recreate it. Trap: tags.
“Test a move without moving anything” → validateMoveResources. Trap: performing the real move.
“A move fails because of a ReadOnly lock” → Remove the lock on the source or destination group or subscription. Trap: more permissions don't help.
“Move 1,000 resources in one request” → Over 800 returns an error: split the request.
“Depth of a management group tree” → Six levels, not counting root and subscription. Trap: unlimited.
“New subscription lands in which management group?” → The root (Tenant root group) unless you change the default management group.
“Delete or move the root management group” → Not possible.
“A Global Administrator can't see the root group” → Elevate access. Trap: assigning an Entra role.
“Delete a management group” → It must be empty of child groups and subscriptions. Trap: deleting it with subscriptions inside.
“Restrict regions for all subscriptions under a management group” → Assign Allowed locations at the management group. Trap: a policy per subscription.
“Change directory on a subscription” → All role assignments and custom roles are permanently deleted: re-create them. Trap: expecting them to follow the subscription.
“Transfer billing ownership and keep role assignments” → Leave "Move subscription tenant" unchecked. Trap: checking it removes all role assignments.
“Who can cancel a subscription?” → The subscription Owner. Trap: an account administrator without Owner can't.
Sources
- Manage resource groups in the portal
- Azure Resource Manager overview
- Manage resource groups with Azure CLI
- Manage resource groups with Azure PowerShell
- Delete resource group and resources
- Move resources to a new resource group or subscription
- Organize resources with management groups
- Quickstart: create a management group (portal)
- Quickstart: create a management group (Azure CLI)
- Quickstart: create a management group (PowerShell)
- Manage management groups
- Protect your resource hierarchy
- Cancel and delete your Azure subscription
- Create a Microsoft Customer Agreement subscription
- Azure subscription states
- Transfer billing ownership of a subscription
- Associate a subscription to a Microsoft Entra directory
- Transfer an Azure subscription to a different directory
Checked against Microsoft Learn on November 13, 2026.