Repository navigation
Closed
Labels
Description
Container image tag
sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest
Host OS
Windows 11 (x86_64)
Container runtime and version
Podman 5.4.2
What happened
With mcr.microsoft.com/mssql/server:2025-latest setting env vars MSSQL_AAD_CLIENT_ID, MSSQL_AAD_PRIMARY_TENANT, MSSQL_AAD_CERTIFICATE_FILE_PATH allows to have entra authentication and add Entra Id Accounts using CREATE LOGIN FROM EXTERNAL PROVIDER
With Azure SQL container ( sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest ), I get an error
1> CREATE LOGIN [user@domain] FROM EXTERNAL PROVIDER;
2> GO
Msg 37525, Level 16, State 1, Server 9e8529445ac8, Line 1
Command 'CREATE LOGIN FROM EXTERNAL PROVIDER' is not supported as Azure Active Directory is not configured for this instance.
Looking at SQL Server log,I see related logs
2026-07-14 13:28:33.90 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:33.91 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
2026-07-14 13:28:33.92 spid38s Setting database option COMPATIBILITY_LEVEL to 170 for database 'model'.
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:33.93 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:33.97 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:33.97 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.00 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
[cp-shim] 2026-07-14T13:28:34Z SQL TCP-accept after 6s.
2026-07-14 13:28:34.10 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.11 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.13 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.17 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.18 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.20 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.30 spid55 [DbId:32760] ADR enabled for the database.
[cp-shim] 2026-07-14T13:28:34Z tempdb + model ONLINE after 0s.
2026-07-14 13:28:34.39 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.40 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.41 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.43 spid38s The tempdb database has 8 data file(s).
2026-07-14 13:28:34.45 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.45 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.47 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
[cp-shim] 2026-07-14T13:28:34Z tempdb write-probe succeeded after 0s.
2026-07-14 13:28:34.57 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.58 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.59 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.62 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.62 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.63 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
[cp-shim] 2026-07-14T13:28:34Z Provisioned control-plane login [SqlDbDevControlPlane]; switching reconcile connections to it.
2026-07-14 13:28:34.76 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.76 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.78 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.81 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.81 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.82 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:34.86 spid55 [DbId:32760] ADR enabled for the database.
[cp-shim] 2026-07-14T13:28:34Z READ_COMMITTED_SNAPSHOT: already 1 (no-op)
2026-07-14 13:28:34.95 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:34.96 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:34.97 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:35.00 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:35.01 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:35.03 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:35.06 spid55 [DbId:32760] ADR enabled for the database.
[cp-shim] 2026-07-14T13:28:35Z ALLOW_SNAPSHOT_ISOLATION: already 1 (no-op)
2026-07-14 13:28:35.15 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:35.15 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:35.17 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:35.21 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:35.22 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:35.23 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
2026-07-14 13:28:35.27 spid55 [DbId:32760] ADR enabled for the database.
[cp-shim] 2026-07-14T13:28:35Z COMPATIBILITY_LEVEL: already 170 (no-op)
2026-07-14 13:28:35.35 spid55 Microsoft Entra ID authentication is enabled. This is an informational message only; no user action is required.
2026-07-14 13:28:35.35 spid55 Successfully loaded the AAD first party principal certificate.
JSONWebTokenService::MiseInitForFirstPartyApplications:Info: Could not set aRgwszMiseConfigJsonAzureRegionProperty object with dwError: 4306, eJWTErrorState = 179. Skipping Azure Region setting
JSONWebTokenService::MiseInitForFirstPartyApplications:Error: Could not retrieve aRgwszSecondAudienceForPolarisTesting object
2026-07-14 13:28:35.37 spid55 Azure Active Directory authentication manager initialization failed. AAD authentication will be disabled, failure: 0x80004005
Steps to reproduce
- Start the container with
podman run -it --name sqldb `
-e "ACCEPT_EULA=Y" `
-e "MSSQL_SA_PASSWORD=SecretPassword" `
-e "MSSQL_AAD_CLIENT_ID=00000000-0000-0000-0000-000000000000" `
-e "MSSQL_AAD_PRIMARY_TENANT=00000000-0000-0000-0000-000000000000" `
-e "MSSQL_AAD_CERTIFICATE_FILE_PATH=/var/opt/mssql/mssql-entra-id.pfx" `
-p 1433:1433 `
-v "D:\temp\azuresql\mssql-entra-id.pfx:/var/opt/mssql/mssql-entra-id.pfx:ro" `
-d sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest- Connect to database and try to create a login
CREATE LOGIN [user@domain] FROM EXTERNAL PROVIDER;- Error
CREATE LOGIN FROM EXTERNAL PROVIDER' is not supported as Azure Active Directory is not configured for this instance.
Additional context
No response
Confirmation
- I scanned open issues and Known limitations for a duplicate.
Reacted by Randolph West MSFT
Activity
rwestMSFT commentedon Jul 15, 2026
Hmmm, I wonder if this is a bug. I remember the Microsoft Entra experience on 2022 was much improved for 2025. If the compatibility level is 170 it should probably work.
devlead commentedon Jul 15, 2026
This is before any DB is created, fresh container just pulled and started with the new Azure SQL Developer container image, it fails to start with entra auth enabled, it's disabled on server level, with SQL 2025 it just works can create user in master DB.
I start container with same parameters only difference is image used.
Error log is the console output when starting the container. If something can be configured, then it likely should be addressed in the image built and provided by Microsoft.
rwestMSFT commentedon Jul 15, 2026
Let me see if there's someone I can ping internally. I can't make any promises, since I'm just a content developer.
ericjulien commentedon Jul 17, 2026
Fixed in new
latestimage:sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev@sha256:6bdcbbbcf64b4e810a59c8361d76ed4e6a2c395b26e08f5bcc1e1d0071dbc6b4