Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Collaborator
|
RDBMS |
migrationRuntimeResourceId to the create migration request in CLI
evelyn-ys
approved these changes
Apr 22, 2024
nasc17
added a commit
to nasc17/azure-cli
that referenced
this pull request
Apr 23, 2024
…ing migration request in CLI (Azure#28695)" This reverts commit 0f5e68d.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az postgres flexible-server migration create --subscription sub --resource-group testGroup --name testserver --migration-name testmigration --properties "migrationConfig.json"Description
Introducing new optional property MigrationRuntimeResourceId that will be responsible for migrating data between source and target server in support of private endpoint migration. This property is to be defined in JSON file passed in properties argument for creating a migration
Testing Guide

Manually
Help:
Pass Test:


Fail Test:
'postgres' 'flexible-server' 'migration' 'create' '--subscription' 'ac0271d6-426b-4b0d-b88d-0d0e4bd693ae' '--name' 'cli-test-server-pg-flex-eastus2euapac0271d6426b4b0db8' '--migration-name' 'nasctestmigration1' '-g' 'cli-test-do-not-delete-rg-eastus2euapac0271d6426b4b0d' '--properties' 'C:\Users\nasc\migration_test.json' '--migrationRuntimeResourceId' '/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/temp-ss-postgresql-240102-0611-760428cd/providers/Microsoft.DBforPostgreSQL/servers/testmigration-nasc1'
WARNING: Checking the existence of the resource group 'cli-test-do-not-delete-rg-eastus2euapac0271d6426b4b0d'...
WARNING: Resource group 'cli-test-do-not-delete-rg-eastus2euapac0271d6426b4b0d' exists ? : True
ERROR: Migration runtime resource ID provided should be Flexible server.
'postgres' 'flexible-server' 'migration' 'create' '--subscription' '5c5037e5-d3f1-4e7b-b3a9-f6bf94902b30' '--resource-group' 'Aditya_PM' '--name' 'test-flexible-endpoint' '--migration-name' 'nasctestmigration3' '--properties' 'C:\Users\nasc\OneDrive - Microsoft\Documents\migration_test.json' '--migrationRuntimeResourceId' '/subscriptions/5c5037e5-d3f1-4e7b-b3a9-f6bf94902b30/resourceGroups/Aditya_PM/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-flexible-endpoint'
WARNING: Checking the existence of the resource group 'Aditya_PM'...
WARNING: Resource group 'Aditya_PM' exists ? : True
ERROR: Migration Runtime server is same as Target Flexible server. Please change the values accordingly.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.