Move a Recovery Services vault across Azure subscriptions and resource group #Backup #ASR #Azure #ITpro #powershell

When working on migrations from datacenter to datacenter you often move the backup to a file keep it as archive. but when moving from Azure to Azure subscription that seems a bit more complicate. Well you could use Azure Recource mover. but that is no fun and In this case Powershell is so much easier.

In the old subscription I have a couple of servers vaults. I need them as Archive. First I made sure that all backups are stopped from the VM's

Now logon to the Source Subscription

$destinationRG = “rg-weu-backup-demo-01”
$vault = Get-AzRecoveryServicesVault -Name demo-vault-01 – ResourceGroupName rg-demoold-weu-demo-01

this gets the proper info that we need

Next we do the move action be aware this took some time ( couple of minutes)

Move-AzResource -DestinationSubscriptionId “your subscription id” -DestinationResourceGroupName $destinationRG -ResourceId $vault.ID -Verbose

As I did not use the verbose I did not see anything.

When I checked the backup center and the resource group all the data was there quick and easy.

Hope it was helpful thanks for visiting my blog.

Follow Me on Twitter @ClusterMVP

Follow My blog https://robertsmit.wordpress.com

Linkedin Profile Http://nl.linkedin.com/in/robertsmit

Author: Robert Smit [MVP]

Robert Smit is Senior Technical Evangelist and is a current Microsoft MVP in Clustering as of 2009.
Robert has over 20 years experience in IT with experience in the educational, health-care and finance industries.
Robert's past IT experience in the trenches of IT gives him the knowledge and insight that allows him to communicate effectively with IT professionals
who are trying to address real concerns around business continuity, disaster and regulatory compliance issues. Robert holds the following certifications:
MCT – Microsoft Certified Trainer, MCTS – , MCSE, MCSA and MCPS. He is an active participant in the Microsoft newsgroup community and is currently focused on , Clustering, , Azure and all things related to Cloud Computing and Infrastructure Optimalization.
Follow Robert on Twitter @ClusterMVP
Or follow his blog https://robertsmit.wordpress.com
Linkedin Profile Http://nl.linkedin.com/in/robertsmit

Robert is also capable of transferring his knowledge to others which is a rare feature in the field of IT. He makes a point of not only solving issues but also of giving on the job training of his colleagues.

A customer says ” Robert has been a big influence on our technical staff and I have to come to know him as a brilliant specialist concerning Microsoft Products. He was Capable with his in-depth knowledge of Microsoft products to problems and develop our infrastructure to a higher level. I would certainly hire him again in the future. ”

Details of the Recommendation: “I have been coordinating with Robert implementing a very complex system. Although he was primarily a Microsoft infrastructure specialist; he was able to understand and debug .Net based complext Windows applications and websites. His input to improve performance of applications proved very helpful for the success of our project

 

This article was originally published by The Windows Server HA Blog. You can find the original article here.