Skip to content

Commit dcbe09e

Browse files
Merge pull request #310918 from AbhishekMallick-MS/Jan-27-2026-AIoptimization
AI optimization - PSQL Flex restore using PS - H2 updates
2 parents 05d1c38 + 2e9388a commit dcbe09e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

articles/backup/backup-azure-database-postgresql-flex-restore-powershell.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Restore Azure Database for PostgreSQL - Flexible Server using Azure PowerShell
33
description: Learn how to restore Azure Database for PostgreSQL - Flexible Server using Azure PowerShell.
44
ms.topic: how-to
5-
ms.date: 02/28/2025
5+
ms.date: 01/27/2026
66
ms.service: azure-backup
77
ms.custom: devx-track-azurepowershell, ignite-2024
88
author: AbhishekMallick-MS
@@ -23,15 +23,15 @@ Let's use an existing Backup vault `TestBkpVault`, under the resource group `tes
2323
$TestBkpVault = Get-AzDataProtectionBackupVault -VaultName TestBkpVault -ResourceGroupName "testBkpVaultRG"
2424
```
2525

26-
## Set up permissions for restore
26+
## Set up permissions for PostgreSQL - Flexible Server restore
2727

2828
Backup vault uses managed identity to access other Azure resources. To restore from backup, Backup vault’s managed identity requires a set of permissions on the Azure PostgreSQL – Flexible Server to which the database should be restored.
2929

3030
To assign the relevant permissions for vault's system-assigned managed identity on the target PostgreSQL – Flexible Server, check the [set of permissions](backup-azure-database-postgresql-flex-overview.md#azure-backup-authentication-with-the-postgresql-server) needed to backup Azure PostgreSQL – Flexible Server database.
3131

3232
To restore the recovery point as files to a storage account, the [Backup vault's system-assigned managed identity needs access on the target storage account](./restore-azure-database-postgresql.md#restore-permissions-on-the-target-storage-account).
3333

34-
## Fetch the relevant recovery point
34+
## Fetch the relevant recovery point of PostgreSQL - Flexible Server
3535

3636
Fetch all instances using [Get-AzDataProtectionBackupInstance](/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance) cmdlet and identify the relevant instance.
3737

@@ -58,7 +58,7 @@ Once the instance is identified, fetch the relevant recovery point.
5858
$rp = Get-AzDataProtectionRecoveryPoint -ResourceGroupName "testBkpVaultRG" -VaultName $TestBkpVault.Name -BackupInstanceName $AllInstances[2].BackupInstanceName
5959
```
6060

61-
## Prepare the restore request
61+
## Prepare the restore request for PostgreSQL - Flexible Server
6262

6363
You can restore the recovery point for a PostgreSQL – Flexible Server database as files only.
6464

@@ -100,15 +100,15 @@ pg_restore -h <hostname> -U <username> -j <Num of parallel jobs> -Fd -C -d <data
100100
If you have more than one database to restore, rerun the earlier cmdlet for each database.
101101
Also, by using multiple concurrent jobs `-j`, you can reduce the restore time of a large database on a **multi-vCore** target server. The number of jobs can be equal to or less than the number of `vCPUs` allocated for the target server.
102102

103-
## Trigger the restore
103+
## Trigger the restore for PostgreSQL - Flexible Server
104104

105105
To trigger the restore operation with the prepared request, use the [`Start-AzDataProtectionBackupInstanceRestore`](/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore) cmdlet
106106

107107
```azurepowershell-interactive
108108
Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $AllInstances[2].BackupInstanceName -ResourceGroupName "testBkpVaultRG" -VaultName $TestBkpVault.Name -Parameter $OssRestoreReq
109109
```
110110

111-
## Track jobs
111+
## Track jobs for PostgreSQL - Flexible Server restore
112112

113113
Track all jobs by using the [`Get-AzDataProtectionJob`](/powershell/module/az.dataprotection/get-azdataprotectionjob) cmdlet. You can list all jobs and fetch a particular job detail.
114114

0 commit comments

Comments
 (0)