az backup restore

Restore backed up items from recovery points in a Recovery Services vault.

Commands

az backup restore files Gives access to all files of a recovery point.
az backup restore files mount-rp Download a script which mounts files of a recovery point.
az backup restore files unmount-rp Close access to the recovery point.
az backup restore restore-disks Restore disks of the backed VM from the specified recovery point.

az backup restore restore-disks

Restore disks of the backed VM from the specified recovery point.

az backup restore restore-disks --container-name
--item-name
--rp-name
--storage-account
[--ids]
[--resource-group]
[--restore-to-staging-storage-account {false, true}]
[--subscription]
[--target-resource-group]
[--vault-name]

Examples

Restore disks of the backed VM from the specified recovery point. (autogenerated)

az backup restore restore-disks --container-name MyContainer --item-name MyItem --resource-group MyResourceGroup --rp-name MyRp --storage-account mystorageaccount --vault-name MyVault

Required Parameters

--container-name -c

Name of the container.

--item-name -i

Name of the backed up item.

--rp-name -r

Name of the recovery point.

--storage-account

Name or ID of the staging storage account. The VM configuration will be restored to this storage account. See the help for --restore-to-staging-storage-account parameter for more info.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--restore-to-staging-storage-account

Use this flag when you want disks to be restored to the staging storage account using the --storage-account parameter. When not specified, disks will be restored to their original storage accounts. Default: false.

accepted values: false, true
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--target-resource-group -t

Use this to specify the target resource group in which the restored disks will be saved.

--vault-name -v

Name of the Recovery services vault.