diff --git a/src/sql/workbench/services/connection/browser/connectionWidget.ts b/src/sql/workbench/services/connection/browser/connectionWidget.ts index 9ff5759350..0a1075f5cd 100644 --- a/src/sql/workbench/services/connection/browser/connectionWidget.ts +++ b/src/sql/workbench/services/connection/browser/connectionWidget.ts @@ -698,7 +698,7 @@ export class ConnectionWidget extends lifecycle.Disposable { if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) { this.fillInAzureAccountOptions().then(async () => { let accountName = (this.authType === AuthenticationType.AzureMFA) - ? connectionInfo.userName : connectionInfo.azureAccount; + ? connectionInfo.azureAccount : connectionInfo.userName; this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName)); await this.onAzureAccountSelected(); let tenantId = connectionInfo.azureTenantId;