Skip to content

Commit e97dd1e

Browse files
Merge pull request #280570 from apduvuri/clichanges
CLI changes for the runtime server
2 parents 0c1e4ba + d6ec4f6 commit e97dd1e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

articles/postgresql/migrate/migration-service/concepts-migration-service-runtime-server.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,25 @@ The migration runtime server is essential for transferring data between differen
2828

2929
## How do you use the Migration Runtime Server feature?
3030

31-
To use the Migration Runtime Server feature within the migration service in Azure Database for PostgreSQL, follow these steps in the Azure portal:
31+
To use the Migration Runtime Server feature within the migration service in Azure Database for PostgreSQL, you can select the appropriate migration option either through the Azure portal during the setup or by specifying the `migrationRuntimeResourceId` in the JSON properties file during the migration create command in the Azure CLI. Here's how to do it in both methods:
32+
33+
### Use the Azure portal
3234

3335
- Sign in to the Azure portal and access the migration service (from the target server) in the Azure Database for PostgreSQL instance.
3436
- Begin a new migration workflow within the service.
3537
- When you reach the "Select runtime server" tab, use the Migration Runtime Server by selecting "Yes."
36-
Choose your Azure subscription and resource group and the location of the VNet-integrated Azure Database for PostgreSQL—Flexible server.
38+
- Choose your Azure subscription and resource group and the location of the VNet-integrated Azure Database for PostgreSQL—Flexible server.
3739
- Select the appropriate Azure Database for PostgreSQL Flexible Server to serve as your Migration Runtime Server.
3840

3941
:::image type="content" source="media/concepts-migration-service-runtime-server/select-runtime-server.png" alt-text="Screenshot of selecting migration runtime server.":::
4042

43+
### Use Azure CLI
44+
45+
- Open your command-line interface.
46+
- Ensure you have the Azure CLI installed and you're logged into your Azure account using az sign-in.
47+
- The version should be at least 2.62.0 or above to use the migration runtime server option.
48+
- The `az postgres flexible-server migration create` command requires a JSON file path as part of `--properties` parameter, which contains configuration details for the migration. Provide the `migrationRuntimeResourceId` in the JSON properties file.
49+
4150
## Migration Runtime Server essentials
4251

4352
- **Minimal Configuration**—Despite being created from an Azure Database for PostgreSQL Flexible Server, the migration runtime server solely facilitates migration without the need for HA, backups, version specificity, or advanced storage features.

articles/postgresql/migrate/migration-service/how-to-setup-azure-cli-commands-postgresql.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ The `az postgres flexible-server migration create` command requires a JSON file
141141
| `targetServerUserName` | The default value is the admin user created during the creation of the PostgreSQL target flexible server, and the password provided is used for authentication against this user. |
142142
| `dbsToMigrate` | 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. Providing the list of DBs in array format. |
143143
| `overwriteDBsInTarget` | 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, the migration service automatically overwrites the database |
144+
| `migrationRuntimeResourceId` | Required if a runtime server needs to be used for migration. The format is - `/subscriptions/<<Subscription ID>>/resourceGroups/<<Resource Group Name>>/providers/Microsoft.DBforPostgreSQL/flexibleServers/<<PostgreSQL Flexible Server name>>` |
144145
| `sourceType` | Required parameter. Values can be - on-premises, AWS_RDS, AzureVM, PostgreSQLSingleServer |
145146
| `sslMode` | SSL modes for migration. SSL mode for PostgreSQLSingleServer is VerifyFull and Prefer/Require for other source types. |
146147

0 commit comments

Comments
 (0)