Could you please try the below commands
az login --service-principal --username 'someGUID' --password 'someSecret' --tenant 'tenantGuid'
az account set --subscription 'sourceSubscriptionGUID'
az resource move --destination-group 'destinationResourceGroupName' --destination-subscription-id 'destinationSubscriptionGUID' --ids $(az resource list --resource-group 'sourceResourceGroupName' --query "[].id" -o tsv)
Alternatively, you can try the below commands
# 1. Login with service principal
az login --service-principal --username 'someGUID' --password 'someSecret' --tenant 'tenantGuid'
# 2. Set source subscription
az account set --subscription 'sourceSubscriptionGUID'
# 3. Gather all resource IDs in the source resource group
RESOURCE_IDS=$(az resource list --resource-group <source-rg-name> --query "[].id" -o tsv)
# 4. Move resources
az resource move \
--destination-group <destination-rg-name> \
--destination-subscription-id <destination-subscription-id> \
--ids $RESOURCE_IDS
Hope this helps!
Please Let me know if you have any queries.
If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.