This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Migrates a Azure Virtual Machine to another subscription or data centre | |
.DESCRIPTION | |
Shutsdown the source VM | |
Exports the VM config to a temporary file | |
Loops through all Azure disks attached to the source VM | |
Schedules an async copy of the underlying VHD to the destination storage account | |
- optionally overwrites existing VHD in destination if it exists |