Skip to content

Commit 9b6b0d1

Browse files
introducing usernames as a part of the migration API
1 parent f620f88 commit 9b6b0d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ The structure of the JSON is:
126126
"properties": {
127127
"sourceDbServerResourceId":"/subscriptions/<subscriptionid>/resourceGroups/<src_ rg_name>/providers/Microsoft.DBforPostgreSQL/servers/<source server name>",
128128

129+
"sourceServerUserName": "<username>@<servername>",
130+
"targetServerUserName": "<username>",
129131
"secretParameters": {
130132
"adminCredentials":
131133
{
132-
"sourceServerPassword": "<password>",
133-
"targetServerPassword": "<password>"
134+
"sourceServerPassword": "<password>",
135+
"targetServerPassword": "<password>"
134136
}
135137
},
136138

@@ -142,7 +144,6 @@ The structure of the JSON is:
142144
"overwriteDbsInTarget":"true"
143145

144146
}
145-
146147
}
147148

148149
```
@@ -152,6 +153,8 @@ The `create` parameters that go into the json file format are as shown below:
152153
| Parameter | Type | Description |
153154
| ---- | ---- | ---- |
154155
| `sourceDbServerResourceId` | Required | This parameter is the resource ID of the Single Server source and is mandatory. |
156+
| `sourceServerUserName` | Optional | This parameter is the user or role on the source single 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. 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. |
157+
| `targetServerUserName` | Optional | 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** role. 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. |
155158
| `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.
156159
| `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. |
157160
| `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. |

0 commit comments

Comments
 (0)