Home › Studies › AZ-104 › Identities & Governance › Subscriptions & Management Groups

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

TaskAzure CLIPowerShell
Createaz group create --name demoResourceGroup --location westusNew-AzResourceGroup -Name exampleGroup -Location westus
Deleteaz group delete --name exampleGroupRemove-AzResourceGroup -Name exampleGroup
Listaz group listGet-AzResourceGroup
Showaz group show --name exampleGroupGet-AzResourceGroup -Name exampleGroup

Moving resources

TaskAzure CLIPowerShell
Moveaz 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 movingaz resource invoke-action --action validateMoveResources --ids <rgId> --request-body <json>Invoke-AzResourceAction -Action validateMoveResources -ResourceId <rgId> -Parameters @{...}
Check tenantaz account show --subscription <s> --query tenantId(Get-AzSubscription -SubscriptionName <s>).TenantId
Register a provideraz provider register --namespace Microsoft.BatchRegister-AzResourceProvider -ProviderNamespace Microsoft.Batch

Subscription lifecycle

StateWhat it meansOperations
Active (Enabled)NormalAll
Past DueOutstanding payment, still active. May become disabledAll
WarnedWill be disabled if not addressedGET and DELETE only
DisabledVMs deallocated, temporary IPs freed, storage read-only. Causes include expired credit, spending limit reached, a past-due bill. Ownership transfer is disabledGET and DELETE; PUT, PATCH and POST are disabled
ExpiredCancelled. Can be reactivatedGET and DELETE only
DeletedSubscription and all resources and data deletedNone

Transfers

Transfer billing ownershipChange directory
What it changesWho is billedWhich Entra directory trusts the subscription. Not billing
WhoAccount administrator (pay-as-you-go). For an Azure plan, Owner or Contributor on the invoice sectionOwner on the subscription, plus an account that exists in both directories
Role assignmentsKept if Move subscription tenant is unchecked. All permanently removed if checkedAll role assignments and custom roles permanently deleted
NotesOne request at a time, valid 15 days. Can't transfer to a Microsoft Entra B2B or Azure B2C tenantNot supported for CSP subscriptions. Can take several hours to show

Management groups

TaskAzure CLIPowerShell
Createaz account management-group create --name 'Contoso' --display-name 'Contoso Group' (add --parent for a different parent)New-AzManagementGroup -GroupName 'Contoso' -DisplayName 'Contoso Group'
Renameaz account management-group update --name 'Contoso' --display-name 'Contoso Group'Update-AzManagementGroup -GroupId 'ContosoIt' -DisplayName 'Contoso Group'
Deleteaz account management-group delete --name 'Contoso'Remove-AzManagementGroup -GroupId 'Contoso'
List or showaz account management-group listGet-AzManagementGroup
Add a subscriptionaz account management-group subscription add --name 'Contoso' --subscription <id>New-AzManagementGroupSubscription -GroupId 'Contoso' -SubscriptionId <id>
Remove a subscriptionaz account management-group subscription remove --name 'Contoso' --subscription <id>Remove-AzManagementGroupSubscription -GroupId 'Contoso' -SubscriptionId <id>
Move a group under anotheraz account management-group update --name 'Contoso' --parent ContosoITUpdate-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

RoleCan do
OwnerEverything, including assigning access and policy
ContributorCreate, rename, move and delete; can't assign access
Management Group ContributorCreate, rename and delete
Reader, Management Group ReaderRead only
Resource Policy ContributorAssign policy
User Access AdministratorAssign 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

Checked against Microsoft Learn on November 13, 2026.

← Locks & TagsCost Management →