Skip to content

Commit 8c9f822

Browse files
authored
Merge pull request #270901 from varun-dhawan/varund-jan
[PostgreSQL] updates the CLI command
2 parents 6b09060 + beeaed2 commit 8c9f822

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

articles/postgresql/flexible-server/how-to-perform-major-version-upgrade-cli.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ description: This article describes how to perform a major version upgrade in Az
44
ms.service: postgresql
55
ms.subservice: flexible-server
66
ms.custom: devx-track-azurecli
7-
ms.author: kabharati
8-
author: rajsell
9-
ms.reviewer: ""
7+
author: varun-dhawan
8+
ms.author: varundhawan
109
ms.topic: how-to
11-
ms.date: 01/02/2024
10+
ms.date: 04/02/2024
1211
---
1312

1413
# Major version upgrade of Azure Database for PostgreSQL - Flexible Server with Azure CLI
@@ -46,18 +45,24 @@ You can run the following command to perform major version upgrade on an existin
4645
> Major Version Upgrade action is irreversible. Please perform a point-in-time recovery (PITR) of your production server and test the upgrade in the non-production environment.
4746
4847
49-
**Usage**
48+
**Upgrade the major version of a flexible server.**
5049
```azurecli
51-
az postgres flexible-server upgrade --source-server
52-
[--resource-group]
53-
[--postgres-version]
50+
az postgres flexible-server upgrade --version {16, 15, 14, 13, 12}
51+
[--ids]
52+
[--name] [-n]
53+
[--resource-group] [-g]
54+
[--subscription]
55+
[--version] [-v]
56+
[--yes] [-y]
57+
5458
```
5559

56-
**Example:**
57-
Upgrade a server from this PG 11 to PG 14
60+
### Example
61+
62+
**Upgrade server 'testsvr' to PostgreSQL major version 16**
5863

5964
```azurecli
60-
az postgres server upgrade -g myresource-group -n myservername -v mypgversion
65+
az postgres flexible-server upgrade -g testgroup -n testsvr -v 16 -y
6166
6267
```
6368

0 commit comments

Comments
 (0)