Skip to content

Commit 073b655

Browse files
Changes to the json structure
1 parent e8075fc commit 073b655

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,14 @@ The structure of the JSON is:
125125
{
126126
"properties": {
127127
"sourceDbServerResourceId":"/subscriptions/<subscriptionid>/resourceGroups/<src_ rg_name>/providers/Microsoft.DBforPostgreSQL/servers/<source server name>",
128-
129-
"sourceServerUserName": "<username>@<servername>",
130-
"targetServerUserName": "<username>",
131128
"secretParameters": {
132129
"adminCredentials":
133130
{
134131
"sourceServerPassword": "<password>",
135132
"targetServerPassword": "<password>"
136133
}
134+
"sourceServerUserName": "<username>@<servername>",
135+
"targetServerUserName": "<username>"
137136
},
138137

139138
"dbsToMigrate":
@@ -153,9 +152,9 @@ The `create` parameters that go into the json file format are as shown below:
153152
| Parameter | Type | Description |
154153
| ---- | ---- | ---- |
155154
| `sourceDbServerResourceId` | Required | This parameter is the resource ID of the Single Server source and is mandatory. |
155+
| `adminCredentials` | Required | This parameter lists passwords for admin users for both the Single Server source and the Flexible Server target. These passwords help to authenticate against the source and target servers.
156156
| `sourceServerUserName` | Required | The default value is the admin user created during the creation of single server and the password provided will be used for authentication against this user. In case you are not using the default user, this parameter is the user or role on the source server used for performing the migration. This user should have necessary privileges and ownership on the database objects involved in the migration and should be a member of **azure_pg_admin** role. |
157157
| `targetServerUserName` | Required | The default value is the admin user created during the creation of flexible server and the password provided will be used for authentication against this user. In case you are not using the default user, this parameter is the user or role on the target server used for performing the migration. This user should be a member of **azure_pg_admin**, **pg_read_all_settings**, **pg_read_all_stats**,**pg_stat_scan_tables** roles and should have the **Create role, Create DB** attributes. |
158-
| `secretParameters` | Required | This parameter lists passwords for admin users for both the Single Server source and the Flexible Server target. These passwords help to authenticate against the source and target servers.
159158
| `dbsToMigrate` | Required | Specify the list of databases that you want to migrate to Flexible Server. You can include a maximum of eight database names at a time. |
160159
| `overwriteDbsInTarget` | Required | When set to true (default), if the target server happens to have an existing database with the same name as the one you're trying to migrate, migration tool automatically overwrites the database. |
161160
| `SetupLogicalReplicationOnSourceDBIfNeeded` | Optional | You can enable logical replication 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 two to three minutes. |

0 commit comments

Comments
 (0)