Administrator Guide

}
else
{
$VHDMap.Add($vhd.ParentDisk.ID , $vm.Name)
}
}
}
}
if($VmsWithParentVHDs[$vmname])
{
Write-Host "The VM has a parent VHD configuration."
}
else
{
Write-Host "The VM does not have a parent VHD configuration."
}
The script output indicates whether the VM has a parent VHD conguration.
Recovering a VM with no parent VHD conguration
To recover a VM with no parent VHD conguration, that is, a VM that uses a dierencing disk, do the following.
1 Case 1, the VM is corrupted but not deleted:
a In the VMM console, shut down the VM that you want to recover.
b Use the steps in Recovering a VM to its original location to recover the VM.
c From the VMM console, start the VM.
2 Case 2, the VM is deleted:
a Use the steps in Recovering a VM to an alternate location to recover the VM.
b From the VMM console, start the VM.
Recovering a VM with a parent VHD conguration
To recover a VM with a parent VHD conguration, that is, it uses a dierencing disk, do the following:
1 If the VM is present in the Windows Azure Pack management portal for tenants, delete the VM from the portal.
2 Use the steps in Recovering a VM to an alternate location to recover the VM.
3 From the VMM console, start the VM.
82
Operations