-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[rdbms] az postgres flexible-server migration: Add customer facing feature to migrate postgres db servers from Sterling to Meru platform #18161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2da1751
Support for "az postgres flexible-server migration" commands
Rajesh1Ganesan bef403e
Merge branch 'dev' into postgresMigrations
Rajesh1Ganesan 67a98b9
Fix a linter error caused by copy-paste.
Rajesh1Ganesan eed3e86
Fix more linter errors
Rajesh1Ganesan c641916
Use custom_show_command instead of custom_command for 'show' to fix a…
Rajesh1Ganesan 4d614e4
1. Remove the --subscription-id parameter. Use the CLI command param …
Rajesh1Ganesan 7aa0904
Rename body to properties, which makes more sense in this context.
Rajesh1Ganesan f920822
Fix isses reported by "azdev style rdbms"
Rajesh1Ganesan 677e093
Fix linter issues
Rajesh1Ganesan 04cebda
Merge branch 'dev' into postgresMigrations
Rajesh1Ganesan ce89566
Fix issues reported by azdev style check
Rajesh1Ganesan 6ef6109
Mark the migration command group as experimental
Rajesh1Ganesan b8c5f26
Cannot have is_preview and is_experimental at the same time. So remov…
Rajesh1Ganesan 9b94286
1. Added a confirmation for migration delete, 2. Deleted unused code,…
Rajesh1Ganesan 57441c8
Replace parameters db1, db2, ...db8 with an db-names parameter which …
Rajesh1Ganesan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
30 changes: 30 additions & 0 deletions
30
src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/migrationPublic.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "properties": { | ||
| "SourceDBServerResourceId": "subscriptions/6a37df99-a9de-48c4-91e5-7e6ab00b2362/resourceGroups/raganesa-s-s-pg-1/providers/Microsoft.DBforPostgreSQL/servers/raganesa-s-s-pg-1", | ||
| "SecretParameters": | ||
| { | ||
| "AdminCredentials": | ||
| { | ||
| "SourceServerPassword": "xxxx", | ||
| "TargetServerPassword": "xxxx" | ||
| }, | ||
| "AADApp": | ||
| { | ||
| "ClientId": "xxxxxx", | ||
| "TenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
| "AadSecret": "xxxxx" | ||
| } | ||
| }, | ||
| "DBsToMigrate": [ | ||
| "dvdrental" | ||
| ], | ||
| "MigrationResourceGroup": | ||
| { | ||
| "ResourceId": "subscriptions/6a37df99-a9de-48c4-91e5-7e6ab00b2362/resourceGroups/raganesa-DMSBuddy-Demo", | ||
| "Location": "West US 2" | ||
| }, | ||
| "SetupLogicalReplicationOnSourceDBIfNeeded": "true", | ||
| "OverwriteDBsinTarget": "true", | ||
| "TriggerCutover": "true" | ||
| } | ||
| } |
31 changes: 31 additions & 0 deletions
31
src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/migrationVNet.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "properties": { | ||
| "SourceDBServerResourceId": "subscriptions/6a37df99-a9de-48c4-91e5-7e6ab00b2362/resourceGroups/raganesa-s-s-pg-1/providers/Microsoft.DBforPostgreSQL/servers/raganesa-s-s-pg-1-vnet-1", | ||
| "SecretParameters": | ||
| { | ||
| "AdminCredentials": | ||
| { | ||
| "SourceServerPassword": "xxxx", | ||
| "TargetServerPassword": "xxxx" | ||
| }, | ||
| "AADApp": | ||
| { | ||
| "ClientId": "xxxxxx", | ||
| "TenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", | ||
| "AadSecret": "xxxxx" | ||
| } | ||
| }, | ||
| "DBsToMigrate": [ | ||
| "dvdrental" | ||
| ], | ||
| "MigrationResourceGroup": | ||
| { | ||
| "ResourceId": "subscriptions/6a37df99-a9de-48c4-91e5-7e6ab00b2362/resourceGroups/raganesa-DMSBuddy-Demo", | ||
| "Location": "West US 2" | ||
| }, | ||
| "TargetDBServerSubnetResourceId": "subscriptions/6a37df99-a9de-48c4-91e5-7e6ab00b2362/resourceGroups/raganesa-s-s-pg-1/providers/Microsoft.Network/virtualNetworks/raganesa-s-s-pg-1-vnet/subnets/raganesa-s-s-pg-1-vnet-s-s-subnet", | ||
| "SetupLogicalReplicationOnSourceDBIfNeeded": "true", | ||
| "OverwriteDBsInTarget": "true", | ||
| "TriggerCutover": "true" | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.