We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0703cee + 887862f commit b0a5efbCopy full SHA for b0a5efb
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecRestoreBackup.ps1
@@ -17,7 +17,7 @@ function Invoke-ExecRestoreBackup {
17
18
if ($Request.Body.BackupName -like 'CippBackup_*') {
19
$Table = Get-CippTable -tablename 'CIPPBackup'
20
- $Backup = Get-CippAzDataTableEntity @Table -Filter "RowKey eq '$($Request.Body.BackupName)'"
+ $Backup = Get-CippAzDataTableEntity @Table -Filter "RowKey eq '$($Request.Body.BackupName)' or OriginalEntityId eq '$($Request.Body.BackupName)'"
21
if ($Backup) {
22
$BackupData = $Backup.Backup | ConvertFrom-Json -ErrorAction SilentlyContinue | Select-Object * -ExcludeProperty ETag, Timestamp
23
$BackupData | ForEach-Object {
0 commit comments