You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -85,18 +85,18 @@ function Update-AzDataProtectionBackupInstance
@@ -210,6 +210,30 @@ This example also works for datasource type AzureDatabaseForMySQL.
210
210
The sixth command assigns the permissions to the backup vault and other permissions necessary for triggering the restore for AzureDatabaseForPGFlexServer.
211
211
The last command triggers the restore for AzureDatabaseForPGFlexServer.
212
212
213
+
### Example 10: Trigger vaulted backup conatiners ItemLevelRestore with PrefixMatch for Azureblob.
The first, second commands fetch the instance and recovery point for the instance.
229
+
The third command fetches the containers which are protected with vaulted policy.
230
+
The fourth command initializes the prefix array for each container.
231
+
PrefixMatch is a hashtable where each key is the conatiner name being restored and the value is a list of string prfixes for container names for Item level recovery.
232
+
The fifth command initializes the target storage account Id.
233
+
The sixth command initializes the restore request object for AzureBlob restore with parameters ContainersList, PrefixMatch.
234
+
The seventh command triggers validate before restore.
235
+
The last command triggers prefix match Item level restore for vaulted blob containers.
First command fetch the backup instance which needs to be updated.
44
+
Second command gets the backup policy with name vaulted-policy which need to be updated in Backup Instance.
45
+
Third command fetches the list of vaulted containers which are currently backed up in the backup vault.
46
+
Fourth command update the backup instance with new policy and new list of container (which is currently a subset of the existing backed up containers).
47
+
Fifth and sixth command shows the updated policy and containers list in the backu instance.
0 commit comments