diff --git a/extensions/sql-migration/src/models/stateMachine.ts b/extensions/sql-migration/src/models/stateMachine.ts index 8734e6687b..e9091f69c4 100644 --- a/extensions/sql-migration/src/models/stateMachine.ts +++ b/extensions/sql-migration/src/models/stateMachine.ts @@ -524,11 +524,10 @@ export class MigrationStateModel implements Model, vscode.Disposable { vscode.window.showInformationMessage(localize("sql.migration.starting.migration.message", 'Starting migration for database {0} to {1}', db, this._targetServerInstance.name)); } } catch (e) { + console.log(e); vscode.window.showInformationMessage(e); } }); - - vscode.window.showInformationMessage(constants.MIGRATION_STARTED); } } diff --git a/extensions/sql-migration/src/wizard/accountsSelectionPage.ts b/extensions/sql-migration/src/wizard/accountsSelectionPage.ts index ba3c15f2de..e6131585fc 100644 --- a/extensions/sql-migration/src/wizard/accountsSelectionPage.ts +++ b/extensions/sql-migration/src/wizard/accountsSelectionPage.ts @@ -118,6 +118,9 @@ export class AccountsSelectionPage extends MigrationWizardPage { */ if (value.selected) { this.migrationStateModel._azureAccount.properties.tenants = [this.migrationStateModel.getTenant(value.index)]; + this.migrationStateModel._subscriptions = undefined!; + this.migrationStateModel._targetSubscription = undefined!; + this.migrationStateModel._databaseBackup.subscription = undefined!; } });