Skip to content

Commit fbddb58

Browse files
committed
Single to Flexible migration docs-8
1 parent 38c8573 commit fbddb58

19 files changed

+78
-74
lines changed

articles/postgresql/TOC.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
items:
1515
- name: Migration
1616
items:
17-
- name: Single Server to Flexible Server migration (Preview)
17+
- name: Single Server to Flexible Server migration (preview)
1818
items:
1919
- name: Single to Flexible - Concepts
2020
href: concepts-single-to-flexible.md
21-
- name: Single to Flexible - migrate using Portal
21+
- name: Single to Flexible - Migrate using portal
2222
href: how-to-migrate-single-to-flex-portal.md
23-
- name: Single to Flexible - migrate using CLI
23+
- name: Single to Flexible - Migrate using CLI
2424
href: how-to-migrate-single-to-flex-cli.md
25-
- name: Single to Flexible - Setup AAP App using Portal
25+
- name: Single to Flexible - Set up Azure AD app using portal
2626
href: how-to-setup-aad-app-portal.md
2727
- name: Migrate data with pg_dump and pg_restore
2828
href: howto-migrate-using-dump-and-restore.md

articles/postgresql/concepts-single-to-flexible.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ ms.author: shriramm
77
ms.service: postgresql
88
ms.topic: conceptual
99
ms.date: 05/11/2022
10+
ms.custom: "mvc, references_regions"
1011
---
1112

1213
# Migrate from Azure Database for PostgreSQL Single Server to Flexible Server (Preview)
1314

14-
## Overview
15-
1615
>[!NOTE]
1716
> Single Server to Flexible Server migration feature is in public preview.
1817
1918
Azure Database for PostgreSQL Flexible Server provides zone redundant high availability, control over price, and control over maintenance window. Single to Flexible Server Migration feature enables customers to migrate their databases from Single server to Flexible. See this [documentation](./flexible-server/concepts-compare-single-server-flexible-server.md) to understand the differences between Single and Flexible servers. Customers can initiate migrations for multiple servers and databases in a repeatable fashion using this migration feature. This feature automates most of the steps needed to do the migration and thus making the migration journey across Azure platforms as seamless as possible. The feature is provided free of cost for customers.
2019

2120
Single to Flexible server migration is enabled in **Preview** in Australia Southeast, Canada Central, Canada East, East Asia, North Central US, South Central US, Switzerland North, UAE North, UK South, UK West, West US, and Central US.
2221

23-
## How does the migration feature work?
22+
## Overview
2423

2524
Single to Flexible server migration feature provides an inline experience to migrate databases from Single Server (source) to Flexible Server (target).
2625

@@ -100,18 +99,18 @@ Follow the steps provided in this section before you get started with the single
10099

101100
- **Source Server pre-requisites** - You must [enable logical replication](./concepts-logical.md) on the source server.
102101

103-
:::image type="content" source="./media/concepts-single-to-flex/logical-replication-support.png" alt-text="Logical replication from Azure Portal" lightbox="./media/concepts-single-to-flex/logical-replication-support.png":::
102+
:::image type="content" source="./media/concepts-single-to-flex/logical-replication-support.png" alt-text="Logical replication from Azure portal" lightbox="./media/concepts-single-to-flex/logical-replication-support.png":::
104103

105104
>[!NOTE]
106105
> Enabling logical replication will require a server reboot for the change to take effect.
107106
108-
- **Azure Active Directory App set up** - It is a critical component of the migration feature. AAD App helps with role-based access control as the migration feature needs access to both the source and target servers. See [How to setup and configure AAD App](./how-to-setup-aad-app-portal.md) for step-by-step process.
107+
- **Azure Active Directory App set up** - It is a critical component of the migration feature. Azure AD App helps with role-based access control as the migration feature needs access to both the source and target servers. See [How to setup and configure Azure AD App](./how-to-setup-aad-app-portal.md) for step-by-step process.
109108

110109
### Data and schema migration
111110

112-
Once all these pre-requisites are taken care of, you can do the migration. This automated step involves schema and data migration using Azure Portal or Azure CLI.
111+
Once all these pre-requisites are taken care of, you can do the migration. This automated step involves schema and data migration using Azure portal or Azure CLI.
113112

114-
- [Migrate using Azure Portal](./how-to-migrate-single-to-flex-portal.md)
113+
- [Migrate using Azure portal](./how-to-migrate-single-to-flex-portal.md)
115114
- [Migrate using Azure CLI](./how-to-migrate-single-to-flex-cli.md)
116115

117116
### Post migration
@@ -130,19 +129,19 @@ Once all these pre-requisites are taken care of, you can do the migration. This
130129

131130
## Limitations
132131

133-
### Size Limitations
132+
### Size limitations
134133

135134
- Databases of sizes up to 1TB can be migrated using this feature. To migrate larger databases or heavy write workloads, reach out to your account team or reach us @ [email protected].
136135

137136
- In one migration attempt, you can migrate up to eight user databases from a single server to flexible server. In case you have more databases to migrate, you can create multiple migrations between the same single and flexible servers.
138137

139-
### Performance Limitations
138+
### Performance limitations
140139

141140
- The migration infrastructure is deployed on a 4 vCore VM which may limit the migration performance.
142141

143142
- The deployment of migration infrastructure takes ~10-15 minutes before the actual data migration starts - irrespective of the size of data or the migration mode (online or offline).
144143

145-
### Replication Limitations
144+
### Replication limitations
146145

147146
- Single to Flexible Server migration feature uses logical decoding feature of PostgreSQL to perform the online migration and it comes with the following limitations. See PostgreSQL documentation for [logical replication limitations](https://www.postgresql.org/docs/10/logical-replication-restrictions.html).
148147
- **DDL commands** are not replicated.
@@ -153,7 +152,7 @@ Once all these pre-requisites are taken care of, you can do the migration. This
153152

154153
- Logical decoding will use resources in the source single server. Consider reducing the workload or plan to scale CPU/memory resources at the Source Single Server during the migration.
155154

156-
### Other Limitations
155+
### Other limitations
157156

158157
- The migration feature migrates only data and schema of the single server databases to flexible server. It does not migrate other features such as server parameters, connection security details, firewall rules, users, roles and permissions. In other words, everything except data and schema must be manually configured in the target flexible server.
159158

@@ -165,7 +164,7 @@ Once all these pre-requisites are taken care of, you can do the migration. This
165164

166165
- The migration feature does not include assessment of your single server.
167166

168-
## Best Practices
167+
## Best practices
169168

170169
- As part of discovery and assessment, take the server SKU, CPU usage, storage, database sizes, and extensions usage as some of the critical data to help with migrations.
171170
- Plan the mode of migration for each database. For less complex migrations and smaller databases, consider offline mode of migrations.

articles/postgresql/flexible-server/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ $ New Zone-redundant high availability deployments are temporarily blocked in th
130130

131131
$$ New server deployments are temporarily blocked in these regions. Already provisioned servers are fully supported.
132132
133-
** Zone-redundant high availability can now be deployed when you provision new servers in these regions. Pre-existing servers deployed in AZ with *no preference* (which you can check on the Azure Portal), the standby will be provisioned in the same AZ. To configure zone-redundant high availability, perform a point-in-time restore of the server and enable HA on the restored server.
133+
** Zone-redundant high availability can now be deployed when you provision new servers in these regions. Pre-existing servers deployed in AZ with *no preference* (which you can check on the Azure portal), the standby will be provisioned in the same AZ. To configure zone-redundant high availability, perform a point-in-time restore of the server and enable HA on the restored server.
134134
135135
<!-- We continue to add more regions for flexible server. -->
136136
> [!NOTE]

articles/postgresql/how-to-migrate-single-to-flex-cli.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ This quick start article shows you how to use Single to Flexible Server migratio
1818

1919
## Before you begin
2020

21-
1. If you are new to Microsoft Azure, [create an account](https://azure.microsoft.com/free/) to evaluate our offerings. New customers get $200 in free credits to run, test and deploy workloads.
21+
1. If you are new to Microsoft Azure, [create an account](https://azure.microsoft.com/free/) to evaluate our offerings.
2222
2. Register your subscription for Azure Database Migration Service (DMS). If you have already done it, you can skip this step. Go to Azure portal homepage and navigate to your subscription as shown below.
2323

24-
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-dms.png" alt-text="CLI DMS" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-dms.png":::
24+
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-dms.png" alt-text="Screenshot of C L I DMS" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-dms.png":::
2525

2626
3. In your subscription, navigate to **Resource Providers** from the left navigation menu. Search for "**Microsoft.DataMigration**"; as shown below and click on **Register**.
2727

28-
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-dms-register.png" alt-text="CLI DMS Register" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-dms-register.png":::
28+
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-dms-register.png" alt-text="Screenshot of C L I DMS register" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-dms-register.png":::
2929

3030
## Pre-requisites
3131

@@ -35,9 +35,9 @@ This quick start article shows you how to use Single to Flexible Server migratio
3535
2. In case Azure CLI is already installed, check the version by issuing **az version** command. The version should be **2.28.0 or above** to use the migration CLI commands. If not, update your Azure CLI using this [link](/cli/azure/update-azure-cli.md).
3636
3. Once you have the right Azure CLI version, run the **az login** command. A browser page is opened with Azure sign-in page to authenticate. Provide your Azure credentials to do a successful authentication. For other ways to sign with Azure CLI, visit this [link](/cli/azure/authenticate-azure-cli.md).
3737

38-
```bash
39-
az login
40-
```
38+
```bash
39+
az login
40+
```
4141
1. Take care of the pre-requisites listed in this [**document**](./concepts-single-to-flexible.md#pre-requisites) which are necessary to get started with the Single to Flexible migration feature.
4242

4343
## Migration CLI commands
@@ -50,7 +50,7 @@ az postgres flexible-server migration --help
5050

5151
gives you the following output.
5252

53-
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-help.png" alt-text="CLI help" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-help.png":::
53+
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-help.png" alt-text="Screenshot of C L I help" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-help.png":::
5454

5555
It lists the set of migration commands that are supported along with their actions. Let us look into these commands in detail.
5656

@@ -64,7 +64,7 @@ az postgres flexible-server migration create -- help
6464

6565
gives the following result
6666

67-
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-create.png" alt-text="CLI create" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-create.png":::
67+
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-create.png" alt-text="Screenshot of C L I create" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-create.png":::
6868

6969
It calls out the expected arguments and has an example syntax that needs to be used to create a successful migration from the source to target server. The CLI command to create a migration is given below
7070

@@ -148,7 +148,7 @@ Create migration parameters:
148148
| **SourceDBServerResourceId** | Required | Resource ID of the single server and is mandatory. |
149149
| **SourceDBServerFullyQualifiedDomainName** | optional | Used when a custom DNS server is used for name resolution for a virtual network. The FQDN of the single server as per the custom DNS server should be provided for this property. |
150150
| **TargetDBServerFullyQualifiedDomainName** | optional | Used when a custom DNS server is used for name resolution inside a virtual network. The FQDN of the flexible server as per the custom DNS server should be provided for this property. <br> **_SourceDBServerFullyQualifiedDomainName_**, **_TargetDBServerFullyQualifiedDomainName_** should be included as a part of the JSON only in the rare scenario of a custom DNS server being used for name resolution instead of Azure provided DNS. Otherwise, these parameters should not be included as a part of the JSON file. |
151-
| **SecretParameters** | Required | Passwords for admin user for both single server and flexible server along with the AAD app credentials. They help to authenticate against the source and target servers and help in checking proper authorization access to the resources.
151+
| **SecretParameters** | Required | Passwords for admin user for both single server and flexible server along with the Azure AD app credentials. They help to authenticate against the source and target servers and help in checking proper authorization access to the resources.
152152
| **MigrationResourceGroup** | optional | This section consists of two properties. <br> **ResourceID (optional)** : The migration infrastructure and other network infrastructure components are created to migrate data and schema from the source to target. By default, all the components created by this feature are provisioned under the resource group of the target server. If you wish to deploy them under a different resource group, then you can assign the resource ID of that resource group to this property. <br> **SubnetResourceID (optional)** : In case if your source has public access turned OFF or if your target server is deployed inside a VNet, then specify a subnet under which migration infrastructure needs to be created so that it can connect to both source and target servers. |
153153
| **DBsToMigrate** | Required | Specify the list of databases you want to migrate to the flexible server. You can include a maximum of 8 database names at a time. |
154154
| **SetupLogicalReplicationOnSourceDBIfNeeded** | Optional | Logical replication can be enabled on the source server automatically by setting this property to **true**. This change in the server settings requires a server restart with a downtime of few minutes (~ 2-3 mins). |
@@ -195,7 +195,7 @@ az postgres flexible-server migration list [--subscription]
195195

196196
The **migration_name** is the name assigned to the migration during the **create migration** command. Here is a snapshot of the sample response from the **Show Details** CLI command.
197197

198-
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-migration-name.png" alt-text="CLI migration name" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-migration-name.png":::
198+
:::image type="content" source="./media/concepts-single-to-flex/single-to-flex-cli-migration-name.png" alt-text="Screenshot of C L I migration name" lightbox="./media/concepts-single-to-flex/single-to-flex-cli-migration-name.png":::
199199

200200
Some important points to note on the command response:
201201

@@ -336,3 +336,7 @@ Navigate to your Virtual network where you deployed your source or the target se
336336
## Post Migration Steps
337337

338338
Make sure the post migration steps listed [here](./concepts-single-to-flexible.md) are followed for a successful end to end migration.
339+
340+
## Next steps
341+
342+
- [Single Server to Flexible migration concepts](./concepts-single-to-flexible.md)

0 commit comments

Comments
 (0)