From d1d858090c102458aa1c040f25ca6b601f59fc8d Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Wed, 28 Jul 2021 15:36:06 -0700 Subject: [PATCH] Fixing the resource name passed to create sql migration api (#16470) --- .../createSqlMigrationServiceDialog.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extensions/sql-migration/src/dialog/createSqlMigrationService/createSqlMigrationServiceDialog.ts b/extensions/sql-migration/src/dialog/createSqlMigrationService/createSqlMigrationServiceDialog.ts index 0d6e99b709..7148686272 100644 --- a/extensions/sql-migration/src/dialog/createSqlMigrationService/createSqlMigrationServiceDialog.ts +++ b/extensions/sql-migration/src/dialog/createSqlMigrationService/createSqlMigrationServiceDialog.ts @@ -346,7 +346,12 @@ export class CreateSqlMigrationServiceDialog { private async populateResourceGroups(): Promise { this.migrationServiceResourceGroupDropdown.loading = true; try { - this.migrationServiceResourceGroupDropdown.values = await this._model.getAzureResourceGroupDropdownValues(this._model._targetSubscription); + this.migrationServiceResourceGroupDropdown.values = (await this._model.getAzureResourceGroupDropdownValues(this._model._targetSubscription)).map(v => { + return { + name: v.displayName, + displayName: v.displayName + }; + }); const selectedResourceGroupValue = this.migrationServiceResourceGroupDropdown.values.find(v => v.name.toLowerCase() === this._resourceGroupPreset.toLowerCase()); this.migrationServiceResourceGroupDropdown.value = (selectedResourceGroupValue) ? selectedResourceGroupValue : this.migrationServiceResourceGroupDropdown.values[0]; } finally {