Skip to content

Document that Microsoft Entra ID auth works on the container. - #116

Merged
Carlos Robles (croblesm) merged 2 commits into
microsoft:mainfrom
devlead:feature/entraId
Jul 31, 2026
Merged

Carlos Robles (croblesm) merged 2 commits into
microsoft:mainfrom
devlead:feature/entraId

Conversation

@devlead

Copy link
Copy Markdown
Contributor

What this changes

Remove the outdated limitation from docs and skills (MSSQL_AAD_* no longer fails init), and add getting-started plus azuresql-db-container guidance for required vars and optional server-admin bootstrap.

How you verified it

Verified EntraId now works and build docs with local jekyll

Checklist

  • I opened an issue first, or this is a small documentation fix

  • Commands I changed are copy-pasteable and I ran them

  • If I changed a container command, I noted any differences between runtimes (Docker, Podman, nerdctl)

  • Skill frontmatter is still name and description only

  • SKILL.md is still under 500 lines, with detail in references/

  • No skill references a path outside its own folder

  • I did not rename a skill (the names are published identifiers)

@croblesm Carlos Robles (croblesm) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, Mattias Karlsson (@devlead). I validated the #102 fix independently before reviewing: on the current image the errorlog no longer carries the AAD init-failure signature, and CREATE LOGIN ... FROM EXTERNAL PROVIDER now reaches principal resolution (returns Msg 33134, "could not be resolved") instead of Msg 37525 ("not configured for this instance"). So the core change is correct and a welcome fix.

Focusing on the documentation here (I'll review the skills changes separately). Three requests on the docs:

  1. Drop the "SQL Server 2025 container" comparison in getting-started.md. We frame this product as the Azure SQL Database engine rather than SQL Server, so let's state it plainly instead of by comparison, for example: "Configure it with the MSSQL_AAD_* variables and a mounted certificate." The rest of that section reads well.

  2. Please revert the llms.txt changes in this PR. Same SQL Server 2025 comparison shows up there, and it doesn't fit that file. We'll fold the Entra update into llms.txt on our side to keep it consistent, so it's cleaner to leave it out of this PR. The getting-started.md and known-limitations.md edits cover the docs side.

  3. Move the new Entra section up in getting-started.md. It currently lands after ## Next: build something (the closing call-to-action) and just before ## Related content, with the TOC entry in the same spot. Please relocate it into the setup flow (after the connect/verify steps) so the auth configuration doesn't sit below the "go build" step, and move the TOC entry to match.

The known-limitations.md removal is clean and correct now that init works. Thanks again for tracking this down.

@croblesm

Copy link
Copy Markdown
Contributor

Thanks for this, Mattias Karlsson (@devlead), and for chasing the upstream fix.

Scope note: my earlier comments on this PR were about the docs (getting-started.md, known-limitations.md, llms.txt). This follow-up is specifically about the skills files (skills/…). Entra working is confirmed, so none of the below is about whether the feature works — only about how the skills describe it.

A few things before the skills side is ready:

Must fix

1. A skill references a path outside its own folder. skills/azuresql-db-faq/SKILL.md links ](../azuresql-db-container/references/entra-auth.md). Each skill has to stand alone — install azuresql-db-faq by itself and that ../ path resolves to nothing (it's in the PR checklist, too). Please point at the azuresql-db-container skill by name in prose (and/or link the getting-started docs page), the way faq/references/faq.md already does. No cross-skill file paths.

2. The "Verify" step in entra-auth.md confirms the old failure, not the fix. It says to run docker logs … | grep -i entra and expect "enabled / certificate loaded" — but those are exactly the lines the pre-fix silent failure printed right before it died, and the real failure line (…authentication manager initialization failed … 0x80004005) says "AAD"/"Azure Active Directory", which grep -i entra won't match. So the check passes even when Entra is off. Please verify on a reliable signal instead: the absence of authentication manager initialization failed, and/or the functional check — CREATE LOGIN … FROM EXTERNAL PROVIDER now returning Msg 33134 (principal resolution) rather than Msg 37525 (AAD not configured).

Should fix

3. Drop the "SQL Server 2025 container" comparison. It appears in azuresql-db-container/SKILL.md (3b), entra-auth.md, faq/references/faq.md, and local-to-cloud/SKILL.md. This collection deliberately frames the image as the Azure SQL engine, not mcr.microsoft.com/mssql/server, so "works like the SQL Server 2025 container" cuts against that. Please reframe to plain MSSQL_AAD_* / Azure SQL Database language (matching the docs reframe).

4. CREATE LOGIN needs its connection context, and should line up with the sibling skill. In entra-auth.md, note that CREATE LOGIN … FROM EXTERNAL PROVIDER runs on a master connection (it's server-scope; on a user-db session you'd hit Msg 40508), consistent with connection-model.md. Separately, local-to-cloud/references/auth-local-vs-cloud.md (not in this PR) still frames Entra as cloud-only and uses CREATE USER … FROM EXTERNAL PROVIDER (contained user in appdb), while entra-auth.md uses CREATE LOGIN (server). Now that both skills say Entra works locally, please reconcile — I'd lead with CREATE USER FROM EXTERNAL PROVIDER for cloud parity and mention CREATE LOGIN as the server-admin path — and update auth-local-vs-cloud.md so it no longer reads cloud-only.

5. One MSSQL_AAD_* table, not two. The same variable table lives in both references/entra-auth.md and references/environment-variables.md (same skill), so they'll drift. Keep the full table in entra-auth.md; reduce environment-variables.md to the variable names plus a link.

Minor

  • entra-auth.md: the empty-password .pfx note is correct; add a line about protecting the cert with file permissions. There's a stray tab in the CREATE LOGIN snippet.
  • This branch predates a couple of recent main merges (the per-skill knowledge sections), so it'll need a rebase and the container skill's References list will conflict.

Really glad to have Entra closed out. Once the cross-folder link and the Verify step (1 and 2) are handled, the rest is quick — happy to pair on any of it.

Remove the outdated limitation from docs and skills (MSSQL_AAD_* no longer fails init), and add getting-started plus azuresql-db-container guidance for required vars and optional server-admin bootstrap.
Move the Entra section into the setup flow, drop SQL Server 2025 comparisons, revert llms.txt, fix the Entra verify check, and align CREATE USER/LOGIN guidance across skills.
@devlead

Copy link
Copy Markdown
Contributor Author

PR Feedback addressed in the latest commit

  • Moved the Entra section in getting-started.md into the setup flow (after connect/cleanup, before Troubleshooting) and updated the TOC to match
  • Reframed Entra docs to use plain Azure SQL Developer / MSSQL_AAD_* language; removed SQL Server 2025 comparisons
  • Reverted llms.txt changes so Entra updates stay out of this PR
  • Fixed the Entra verify guidance to check for absence of authentication manager initialization failed and use Msg 33134 vs 37525
  • Removed the cross-skill ../azuresql-db-container/... link from azuresql-db-faq; FAQ now points to the skill by name and getting-started
  • Aligned auth guidance across skills: lead with CREATE USER ... FROM EXTERNAL PROVIDER, document CREATE LOGIN ... FROM EXTERNAL PROVIDER on a master connection
  • Updated auth-local-vs-cloud.md so Entra is supported locally, not cloud-only
  • Kept the full MSSQL_AAD_* table only in entra-auth.md; reduced environment-variables.md to names + link
  • Added certificate file-permissions guidance and fixed the CREATE LOGIN snippet formatting
  • Rebased onto current main

@croblesm Carlos Robles (croblesm) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much, Mattias Karlsson (@devlead) - this is a great contribution, and thank you for chasing the upstream fix and turning the review feedback around so thoroughly.

I re-reviewed the skills side and everything is resolved:

  • The cross-skill ../azuresql-db-container/... link is gone (the FAQ points to the container skill by name).
  • The verify step now checks for the absence of authentication manager initialization failed and uses the functional Msg 33134-vs-37525 signal - exactly right.
  • The "SQL Server 2025 container" framing is gone; plain MSSQL_AAD_* / Azure SQL Database language throughout.
  • CREATE USER ... FROM EXTERNAL PROVIDER leads, with CREATE LOGIN ... FROM EXTERNAL PROVIDER documented on a master connection, and auth-local-vs-cloud.md reconciled so Entra reads as locally supported.
  • The MSSQL_AAD_* table is consolidated in entra-auth.md, and certificate file-permission guidance is added.

No em-dashes, no cross-skill paths, and it merges cleanly on current main. Approving and merging - thanks again for closing out the Entra limitation!

@croblesm
Carlos Robles (croblesm) merged commit dead8f4 into microsoft:main Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants