[SQL Migration] Add storage/VM connectivity validation (#22982)

* Implement storage account connectivity check for SQL VM targets

* Add missing break statement

* Address PR comments
This commit is contained in:
Raymond Truong
2023-05-08 11:42:40 -04:00
committed by GitHub
parent 3ae97b81f2
commit 6684dbb78c
3 changed files with 23 additions and 9 deletions

View File

@@ -641,7 +641,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this.wizard.message = {
text: this._inaccessibleStorageAccounts.length > 0
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts)
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts, this.migrationStateModel.isSqlMiTarget)
: '',
level: azdata.window.MessageLevel.Warning
}
@@ -679,7 +679,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this.wizard.message = {
text: this._inaccessibleStorageAccounts.length > 0
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts)
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts, this.migrationStateModel.isSqlMiTarget)
: '',
level: azdata.window.MessageLevel.Warning
}
@@ -1152,7 +1152,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this.wizard.message = {
text: this._inaccessibleStorageAccounts.length > 0
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts)
? constants.STORAGE_ACCOUNT_CONNECTIVITY_WARNING(this.migrationStateModel._targetServerInstance.name, this._inaccessibleStorageAccounts, this.migrationStateModel.isSqlMiTarget)
: '',
level: azdata.window.MessageLevel.Warning
}