November 2017
Intermediate to advanced
276 pages
7h 6m
English
Unlike the recovery process to the Azure VM via the portal we went through earlier, Azure PowerShell can only restore disks. You can then create a new VM from the restored disks, which means you cannot restore the VM directly, as we did earlier.
Since the backed up items are stored in containers, we have to retrieve the container name first by running the following cmdlet:
$Container = Get-AzureRmRecoveryServicesBackupContainer -ContainerType "AzureVM" –Status "Registered" -FriendlyName "PacktPub"
Then, we have to specify the backup item that specifies the workload type by running the following cmdlet:
$BackupItem = Get-AzureRmRecoveryServicesBackupItem –Container $Container –WorkloadType "AzureVM" ...
Read now
Unlock full access