Move a Recovery Services vault across Azure subscriptions and resource group #Backup #ASR #Azure #ITpro #powershell – Robert Smit MVP Blog - The Legend of Hanuman

Move a Recovery Services vault across Azure subscriptions and resource group #Backup #ASR #Azure #ITpro #powershell – Robert Smit MVP Blog


When working on migrations from datacenter to datacenter you often move the backup to a file storage 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.

image

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

image 1

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

image 2

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

image 5
image 4

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

c277f0586e7d259cc2c3dc49928fd48c75419afe319f400fb4c5a339f0e3d28b?s=42&d=identicon&r=G

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 recovery and regulatory compliance issues. Robert holds the following certifications:
MCT – Microsoft Certified Trainer, MCTS – Windows Server Virtualization, MCSE, MCSA and MCPS. He is an active participant in the Microsoft newsgroup community and is currently focused on Hyper-V, Failover Clustering, SQL Server, 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 troubleshoot 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
View all posts by Robert Smit [MVP]




Share this content:

I am a passionate blogger with extensive experience in web design. As a seasoned YouTube SEO expert, I have helped numerous creators optimize their content for maximum visibility.

Leave a Comment