Skip to content

Commit 75a1621

Browse files
authored
Merge pull request #174557 from adityabalaji-msft/adbalaji-oct5
Adding info on restore with MSI
2 parents 31f1d2d + 938cda3 commit 75a1621

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

articles/backup/backup-azure-vms-automation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,12 @@ $restorejob = Get-AzRecoveryServicesBackupJob -Job $restorejob -VaultId $targetV
526526
$details = Get-AzRecoveryServicesBackupJobDetail -Job $restorejob -VaultId $targetVault.ID
527527
```
528528

529+
#### Using managed identity to restore disks
530+
531+
Azure Backup also allows you to use managed identity (MSI) during restore operation to access storage accounts where disks have to be restored to. This option is currently supported only for managed disk restore.
532+
533+
If you wish to use the vault's system assigned managed identity to restore disks, pass an additional flag ***-UseSystemAssignedIdentity*** to the Restore-AzRecoveryServicesBackupItem command. If you wish to use a user-assigned managed identity, pass a parameter ***-UserAssignedIdentityId*** with the ARM id of the vault's managed identity as the value of the parameter. Refer to [this article](encryption-at-rest-with-cmk.md#enable-managed-identity-for-your-recovery-services-vault) to learn how to enable managed identity for your vaults.
534+
529535
#### Restore selective disks
530536

531537
A user can selectively restore few disks instead of the entire backed up set. Provide the required disk LUNs as parameter to only restore them instead of the entire set as documented [here](selective-disk-backup-restore.md#restore-selective-disks-with-powershell).

articles/backup/tutorial-restore-disk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ fe5d0414 ConfigureBackup Completed myvm 2017-09-19T03:03:57 0:00:31
159159

160160
When the *Status* of the restore job reports *Completed*, the necessary information (VM configuration and the deployment template) has been restored to the storage account.
161161

162+
#### Using managed identity to restore disks
163+
164+
Azure Backup also allows you to use managed identity (MSI) during restore operation to access storage accounts where disks have to be restored to. This option is currently supported only for managed disk restore.
165+
166+
If you wish to use the vault's system assigned managed identity to restore disks, pass an additional flag ***--mi-system-assigned*** to the [az backup restore restore-disks](/cli/azure/backup/restore#az_backup_restore_restore_disks) command. If you wish to use a user-assigned managed identity, pass a parameter ***--mi-user-assigned*** with the ARM id of the vault's managed identity as the value of the parameter. Refer to [this article](encryption-at-rest-with-cmk.md#enable-managed-identity-for-your-recovery-services-vault) to learn how to enable managed identity for your vaults.
167+
162168
## Create a VM from the restored disk
163169

164170
The final step is to create a VM from the restored disks. You can use the deployment template downloaded to the given storage account to create the VM.

0 commit comments

Comments
 (0)