Home › Studies › AZ-104 › Compute › Moving Resources

Moving Resources

resource group and subscription moves · dependencies · locks · VM limits · region moves with Resource Mover

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Resource group and subscription moves

Permissions and checks

ItemDetail
Source resource groupMicrosoft.Resources/subscriptions/resourceGroups/moveResources/action
Destination resource groupMicrosoft.Resources/subscriptions/resourceGroups/write
SubscriptionsBoth active. The destination must be registered for the resource provider of each moved resource type (error “subscription isn’t registered for a resource type”). Check quota in the destination.
Dependent resources (cross-subscription)The resource and its dependents must be in the same RG and moved together. For a VM that can mean the VM, disks, NIC, public IP, NSG, vnet (and a diagnostics storage account). Error MissingMoveDependentResources lists what to add. Steps: consolidate into one RG, move together, optionally redistribute.
ValidationAutomatic when you submit a move, and the portal validates before it moves. You can also run validate-only (validateMoveResources). Policy can fail validation (RequestDisallowedByPolicy).
Virtual networksIf a source or target RG contains a vnet, the states of all resources that depend on it (even outside the move) are checked. Any not in Succeeded state blocks the move (MoveCannotProceedWithResourcesNotInSucceededState).

VM-specific move rules

Moving to another region: Azure Resource Mover

Resource Mover steps

StepState afterwardsWhat happens
1. Add resourcesPrepare pendingPick source and destination region and the VMs. The VM’s resource group is added automatically.
2. Validate and add dependenciesValidation runs in the background. Select Add dependencies (direct and indirect, such as NIC, vnet, NSG).
3. PrepareInitiate move pendingMobility agent installed on the VMs, data replicated to the target (source VM unaffected), ARM templates generated for other resources. The target VM size must not be smaller than the source.
4. Initiate moveCommit move pendingReplica VM created in the target and the source VM is shut down (short downtime, usually minutes). Other resources are recreated from templates (usually no downtime).
5. Commit or DiscardDelete source pending (commit)Commit completes the move and stops replication. Discard returns to Initiate move pending.
6. Delete source (optional)Afterwards: reapply Azure RBAC, reinstall extensions, re-enable boot diagnostics, uninstall the Mobility service if not needed.

CLI and PowerShell

TaskAzure CLIPowerShell
Move to another RGaz resource move --destination-group <rg> --ids <id1> <id2>Move-AzResource -DestinationResourceGroupName <rg> -ResourceId $ids
Move to another subscriptionAdd --destination-subscription-id <sub>Add -DestinationSubscriptionId <sub>
Validate a moveaz resource invoke-action --action validateMoveResources --ids <source-rg-id> --request-body "{…}"Invoke-AzResourceAction -Action validateMoveResources -ResourceId <rg-id> -Parameters @{…}
Compare tenantsaz account show --subscription <s> --query tenantId(Get-AzSubscription -SubscriptionName <s>).TenantId
Register a provideraz provider register --namespace Microsoft.BatchRegister-AzResourceProvider -ProviderNamespace Microsoft.Batch
Find Backup restore pointsaz resource list --resource-type Microsoft.Compute/restorePointCollections --query "[?starts_with(name,'AzureBackup_<vm>')].resourceGroup"Get-AzResource -ResourceType Microsoft.Compute/restorePointCollections -Name AzureBackup_<vm>*
Delete restore pointsaz resource delete --ids $RESTOREPOINTCOLRemove-AzResource -ResourceId … -Force
Disable ADE before a subscription moveaz vm encryption disable -g <rg> -n <vm> --volume-type allDisable-AzVMDiskEncryption -ResourceGroupName <rg> -VMName <vm> -VolumeType all

az resource move and Move-AzResource change the resource group or subscription. They cannot change the region.

Exam Tips

Tick each tip once you can answer it without looking.

“Move a VM to another resource group: does it change region?” → No: only the resource group and resource ID change. Trap: believing a move relocates the VM.

“Move a VM to a different region” → Azure Resource Mover (portal Move › new region). Trap: az resource move or Move-AzResource cannot change region.

“Move a VM to another subscription: what goes with it?” → The VM and its dependent resources (disks, NIC, public IP, NSG, vnet) in one RG, moved together. Trap: moving only the VM.

“Error MissingMoveDependentResources” → Include the dependent resource in the move request. Trap: retrying or moving only the parent.

“Source and target subscriptions are in different Entra tenants” → Move is not supported across tenants. Trap: using az resource move with --destination-subscription-id.

“During the move an admin tries to resize a VM in the source RG” → It fails: both RGs are locked (up to 4 hours) but the VM keeps running. Trap: thinking the move stops the VM.

“Permission needed to move resources” → moveResources/action on the source RG and resourceGroups/write on the destination RG. Trap: Reader, or permission on only the target.

“Error “subscription isn’t registered for a resource type”” → Register the resource provider in the destination subscription. Trap: registering it in the source.

“Test whether a move will work without moving anything” → Validate the move (validateMoveResources, or the portal validation step). Trap: doing the move and rolling back.

“Move 1,000 resources in one request” → Error above 800: split into several operations. Trap: assuming it just takes longer.

“Role assignments after moving a resource” → They do not move and become orphaned: recreate them. Trap: assuming RBAC is preserved.

“Move a resource group to another subscription” → Not possible for the RG itself: move its resources into an RG in the target subscription.

“VM protected by Azure Backup must be moved” → Delete the restore point collection (AzureBackupRG_<location>_1), move, then reconfigure backup; with soft delete wait 14 days or disable it. Trap: deleting the vault backup data.

“Marketplace VM with a plan to another subscription” → Not movable: recreate it from a cloned OS disk and accept the plan terms in the target. Trap: az resource move.

“ADE VM to another subscription” → Disable encryption first (to another RG it only needs to be deallocated).

“Order of a Resource Mover VM move” → Add resources, resolve dependencies, Prepare, Initiate move, Commit (or Discard), Delete source. Trap: committing before initiating.

“First-time add in Resource Mover” → Needs Owner on the subscription (or Contributor plus User Access Administrator). Trap: Contributor alone.

“Public IP after a Resource Mover move” → Not retained (new address); extensions and RBAC are not copied; vnet peering not retained. Trap: expecting the IP to carry over.

“Add a VM’s disks to Resource Mover one by one” → Not possible: disks move as part of the VM.

“Disk encryption set or Key Vault used for disk encryption” → Cannot be moved between RGs or subscriptions. Trap: az resource move of the DES.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Disk EncryptionAvailability & Scale Sets →