• Profile picture of Del

    Del replied to the topic Copy Azure VMs Across Resource Groups in the forum General PowerShell Q&A 1 month, 1 week ago

    For the first part, creating the snapshots, I created a csv file that contains Snapshot name, URI-ID and was able to clone disks as bulk on the second resource group name, and it worked  🙂

    $List= Import-Csv -Path C:DataList.csv

    foreach ($Name in $List)

    {

    $ID= $name.Id

    $SnapName= $Name.SnapName

    New-AzureRmSnapshotConfig -SourceUri $ID…[Read more]

  • Profile picture of Del

    Del started the topic Copy Azure VMs Across Resource Groups in the forum General PowerShell Q&A 1 month, 1 week ago

    Hi Guys,

    I need some help with my script;

    I’m trying to clone OS disks for a groups of VMs running on a Resource Groups ($RG1) to another Resource Group ($RG2) by taking a snapshot from each OS disk and saving it on the new Resource Group, then build a new VMs on the new Resource Group and attach the cloned disks to these new VMs.

    It works if I…[Read more]