Skip to content

Commit 169723d

Browse files
Merge pull request #244063 from shriram-muthukrishnan/newapicliupdate
introducing usernames as a part of the migration API
2 parents 76f974d + 0840572 commit 169723d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To complete this tutorial, you need to:
5151

5252
2. Install the latest Azure CLI for your operating system from the [Azure CLI installation page](/cli/azure/install-azure-cli).
5353

54-
If the Azure CLI is already installed, check the version by using the `az version` command. The version should be **2.45.0** or later to use the migration CLI commands. If not, [update your Azure CLI version](/cli/azure/update-azure-cli).
54+
If the Azure CLI is already installed, check the version by using the `az version` command. The version should be **2.50.0** or later to use the migration CLI commands. If not, [update your Azure CLI version](/cli/azure/update-azure-cli).
5555

5656
3. Run the `az login` command:
5757

@@ -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` | Required | 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` | Required | 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)