diff --git a/extensions/sql-migration/src/wizard/targetSelectionPage.ts b/extensions/sql-migration/src/wizard/targetSelectionPage.ts index 75787ff816..8fe89adbbb 100644 --- a/extensions/sql-migration/src/wizard/targetSelectionPage.ts +++ b/extensions/sql-migration/src/wizard/targetSelectionPage.ts @@ -12,7 +12,6 @@ import * as constants from '../constants/strings'; import * as styles from '../constants/styles'; import { WIZARD_INPUT_COMPONENT_WIDTH } from './wizardController'; import { deepClone, findDropDownItemIndex, selectDropDownIndex } from '../api/utils'; -import { sendSqlMigrationActionEvent, TelemetryAction, TelemetryViews } from '../telemtery'; export class TargetSelectionPage extends MigrationWizardPage { private _view!: azdata.ModelView; @@ -131,17 +130,6 @@ export class TargetSelectionPage extends MigrationWizardPage { public async onPageLeave(pageChangeInfo: azdata.window.WizardPageChangeInfo): Promise { this.wizard.registerNavigationValidator((e) => { - - sendSqlMigrationActionEvent( - TelemetryViews.MigrationWizardTargetSelectionPage, - TelemetryAction.OnPageLeave, - { - 'sessionId': this.migrationStateModel?._sessionId, - 'subscriptionId': this.migrationStateModel?._targetSubscription?.id, - 'resourceGroup': this.migrationStateModel?._resourceGroup?.name, - 'tenantId': this.migrationStateModel?._azureTenant?.id || this.migrationStateModel?._azureAccount?.properties?.tenants[0]?.id - }, {}); - return true; }); } diff --git a/extensions/sql-migration/src/wizard/wizardController.ts b/extensions/sql-migration/src/wizard/wizardController.ts index b00dec4fc4..573484f7f2 100644 --- a/extensions/sql-migration/src/wizard/wizardController.ts +++ b/extensions/sql-migration/src/wizard/wizardController.ts @@ -165,6 +165,7 @@ export class WizardController { 'subscriptionId': this._model._targetSubscription?.id, 'resourceGroup': this._model._resourceGroup?.name, 'targetType': this._model._targetType, + 'tenantId': this._model?._azureAccount?.properties?.tenants[0]?.id }; } }