Skip to content

Commit bc51307

Browse files
committed
updates the CLI command
1 parent ae43c1c commit bc51307

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

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

Lines changed: 14 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,22 @@ 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]
53+
[--resource-group]
54+
[--subscription]
55+
[--yes]
5456
```
5557

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

5962
```azurecli
60-
az postgres server upgrade -g myresource-group -n myservername -v mypgversion
63+
az postgres flexible-server upgrade -g testgroup -n testsvr -v 16
6164
6265
```
6366

0 commit comments

Comments
 (0)