Skip to content

Commit b332a86

Browse files
authored
Merge pull request #227179 from kabharati/pacific021323
Pacific021323
2 parents 1805d25 + 9edfb7c commit b332a86

File tree

8 files changed

+133
-0
lines changed

8 files changed

+133
-0
lines changed

articles/postgresql/TOC.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,12 @@
635635
href: flexible-server/how-to-restart-server-portal.md
636636
- name: Azure CLI
637637
href: flexible-server/how-to-restart-server-cli.md
638+
- name: Major Version Upgrade
639+
items:
640+
- name: Azure portal
641+
href: flexible-server/how-to-perform-major-version-upgrade-portal.md
642+
- name: Azure CLI
643+
href: flexible-server/how-to-perform-major-version-upgrade-cli.md
638644
- name: Restore a server
639645
items:
640646
- name: Azure portal
@@ -653,6 +659,10 @@
653659
href: flexible-server/how-to-manage-high-availability-portal.md
654660
- name: Azure CLI
655661
href: flexible-server/how-to-configure-high-availability-cli.md
662+
- name: major version upgrade
663+
items:
664+
- name: Azure portal
665+
href: flexible-server/how-to-perform-major-version-upgrade-portal.md
656666
- name: Replication
657667
items:
658668
- name: Azure portal
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Major Version Upgrade of a flexible server - Azure CLI
3+
description: This article describes how to perform major version upgrade in Azure Database for PostgreSQL through Azure CLI.
4+
ms.service: postgresql
5+
ms.subservice: flexible-server
6+
ms.author: kabharati
7+
author: rajsell
8+
ms.reviewer: ""
9+
ms.topic: how-to
10+
ms.date: 02/13/2023
11+
---
12+
13+
# Major Version Upgrade of a flexible server - Flexible Server with Azure CLI
14+
15+
[!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)]
16+
17+
This article provides step-by-step procedure to perform Major Version Upgrade in flexible server using Azure CLI.
18+
19+
## Prerequisites
20+
- If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account before you begin.
21+
- Install or upgrade Azure CLI to the latest version. See [Install Azure CLI](/cli/azure/install-azure-cli).
22+
- Log in to Azure account using [az login](/cli/azure/reference-index#az-login) command. Note the **id** property, which refers to **Subscription ID** for your Azure account.
23+
24+
```azurecli-interactive
25+
az login
26+
````
27+
28+
- If you have multiple subscriptions, choose the appropriate subscription in which you want to create the server using the ```az account set``` command.
29+
30+
```azurecli
31+
az account set --subscription <subscription id>
32+
```
33+
34+
- Create a PostgreQL Flexible Server if you haven't already created one using the ```az postgres flexible-server create``` command.
35+
36+
```azurecli
37+
az postgres flexible-server create --resource-group myresourcegroup --name myservername
38+
```
39+
40+
## Perform Major Version Upgrade
41+
42+
You can run the following command to perform major version upgrade on an existing server.
43+
44+
> [!NOTE]
45+
> 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.
46+
47+
48+
**Usage**
49+
```azurecli
50+
az postgres flexible-server upgrade --source-server
51+
[--resource-group]
52+
[--postgres-version]
53+
```
54+
55+
**Example:**
56+
Upgrade a server from this PG 11 to PG 14
57+
58+
```azurecli
59+
az postgres server upgrade -g myresource-group -n myservername -v mypgversion
60+
61+
```
62+
63+
## Next steps
64+
* Learn about [Major Version Upgrade](concepts-major-version-upgrade.md)
65+
* Learn about [backup & recovery](concepts-backup-restore.md)
66+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: Major Version Upgrade of a flexible server - Azure portal
3+
description: This article describes how to perform major version upgrade in Azure Database for PostgreSQL Flexible Server through the Azure portal.
4+
ms.author: kabharati
5+
author: rajsell
6+
ms.service: postgresql
7+
ms.subservice: flexible-server
8+
ms.topic: how-to
9+
ms.date: 02/13/2023
10+
---
11+
12+
# Major Version Upgrade of a Flexible Server
13+
14+
[!INCLUDE [applies-to-postgresql-flexible-server](../includes/applies-to-postgresql-flexible-server.md)]
15+
16+
This article provides a step-by-step procedure to perform Major Version Upgrade in a flexible server using Azure portal
17+
18+
> [!NOTE]
19+
> 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.
20+
21+
## Follow these steps to upgrade your flexible server to the major version of your choice:
22+
23+
24+
25+
1. In the [Azure portal](https://portal.azure.com/), choose the flexible server that you want to upgrade.
26+
27+
2. Select **Overview** from the left pane, and then select **Upgrade**.
28+
29+
:::image type="content" source="media/how-to-perform-major-version-upgrade-portal/upgrade-tab.png" alt-text="Diagram of Upgrade tab to perform in-place major version upgrade.":::
30+
31+
32+
3. You see an option to select the major version of your choice, you have an option to skip versions to directly upgrade to higher versions. Choose the version and click **Upgrade**
33+
34+
:::image type="content" source="media/how-to-perform-major-version-upgrade-portal/set-postgresql-version.png" alt-text="Diagram of PostgreSQL version to Upgrade.":::
35+
36+
37+
4. During upgrade, users have to wait for the process to complete. You can resume accessing the server once the server is back online.
38+
39+
:::image type="content" source="media/how-to-perform-major-version-upgrade-portal/deployment-progress.png" alt-text="Diagram of deployment progress for Major Version Upgrade.":::
40+
41+
42+
5. Once the upgrade is successful,you can expand the Deployment details tab and click **Operation details** to see more information about upgrade process like duration, provisioning state etc.
43+
44+
45+
:::image type="content" source="media/how-to-perform-major-version-upgrade-portal/deployment-success.png" alt-text="Diagram of successful deployment of for Major Version Upgrade.":::
46+
47+
48+
6. You can click on the **Go to resource** tab to validate your upgrade. You notice that server name remained unchanged and PostgreSQL version upgraded to desired higher version with the latest minor version
49+
50+
51+
:::image type="content" source="media/how-to-perform-major-version-upgrade-portal/upgrade-verification.png" alt-text="Diagram of Upgraded version to Flexible server after Major Version Upgrade.":::
52+
53+
## Next steps
54+
55+
- Learn about [business continuity](./concepts-business-continuity.md).
56+
- Learn about [zone-redundant high availability](./concepts-high-availability.md).
57+
- Learn about [backup and recovery](./concepts-backup-restore.md).
46 KB
Loading
31.4 KB
Loading
70.1 KB
Loading
46 KB
Loading
46.3 KB
Loading

0 commit comments

Comments
 (0)