Skip to content

[Bug]: Sovereign Cloud Universal with MFA Support auth error #22296

Closed

Description

@dabohn

Description

Starting 6/3/2026, I noticed errors using the same connection configuration I had been using for months.
platform_broker_error: See https://aka.ms/msal.js.errors#platform_broker_error for details

Consent between first party application 'aebc6443-996d-45c2-90f0-388ff96faa56' (Visual Studio Code) and first party resource '022907d3-0f1b-48f7-badc-1ba6abab6d66' (Azure SQL Database) must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.

This behavior is seen in 2 separate GOV tenants.

My account is able to auth to Azure through Azure Tools extension in the same VS Code session.
I was able to make "Default" auth type work, but this requires Azure CLI which is not allowed for some account types in our environment.

Steps to Reproduce

VS Code Settings:

  • Microsoft-sovereign-cloud: Environment = USGovernment
  • Microsoft-authentication: Implementation - tried both (msal and msal-no-broker)

Server Name = abc.database.usgovcloudapi.net
Trust server certificate = true
Authentication type: Microsoft Entra ID - Universal with MFA support
Signed in Microsoft Account
Encrypt = Mandatory

msal
Popup: "The extension 'SQL Server (mssql)' wants to sign in using USGovernment.
Click Allow
Error: platform_broker_error: See https://aka.ms/msal.js.errors#platform_broker_error for details

msal-no-broker
Popup: "The extension 'SQL Server (mssql)' wants to sign in using USGovernment.
Click Allow; click open link
Error: An error occurred while signing in:invalid_request - AADSTS65002: Consent between first party application 'aebc6443-996d-45c2-90f0-388ff96faa56' and first party resource '022907d3-0f1b-48f7-badc-1ba6abab6d66' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

No response

Environment Information

VS Code Version: 1.122.1 (system setup)
Commit: 8761a5560cfd65fdd19ce7e2bd18dab5c0a4d84e
Date: 2026-05-29T09:25:37+02:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

MSSQL Extension Version: 1.43.0
OS: Windows 11
Connection Type: Azure SQL Database
US Gov VA region

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Activity

  1. changed the title [-][Bug]: Sovereign Cloud Universal with MFA Support auth loop[/-] [+][Bug]: Sovereign Cloud Universal with MFA Support auth error[/+] on Jun 4, 2026
  2. ameliajs000 commented on Jun 6, 2026

    @ameliajs000

    This same error is present in version 1.43.0 when attempting to connect to Microsoft Fabric warehouses and lakehouses (Australia Southeast). Entra with MFA only supported authentication, not working as above describes. Confirmed same error in three different Fabric instances.

  3. Benjin commented on Jun 8, 2026

    @Benjin
    Contributor

    Hi dabohn and ameliajs000, are either of you working with Microsoft customer support here, or are you able to reach out to me over Teams to troubleshoot this issue? benjind [at] microsoft [dotcom]

  4. Benjin commented on Jun 8, 2026

    @Benjin
    Contributor

    ameliajs000 Can you confirm that you're also attempting to connect in a sovereign cloud environment?

  5. Benjin commented on Sep 1, 2026

    @Benjin
    Contributor

    Hi all, I believe this issue should be resolved with a config update in the US Government (Fairfax/Arlington) cloud, confirmed by dabohn. If there are other clouds that you're encountering this issue in, please reach out to me internally over Teams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions