Repository navigation
Fix Managed CI Managed Identity User ID - #5122
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the pipeline-only Managed Instance CI authentication update.
No open issues 🎉
What changed in this PR
Updates Managed Instance CI authentication to match the token-based test harness introduced in #4390. The change is limited to pipeline configuration; product code, public APIs, and test implementations are unchanged.
Changes:
- Enables managed identity support and supplies
SqlMiUserManagedIdentityClientIdto the harness. - Corrects comments to explain shared identity usage and connection-string compatibility with older harnesses.
| File | Description |
|---|---|
eng/pipelines/ci/managed-instance/sqlclient-ci-managed-instance-job.yml |
Enables managed identity authentication, passes the dedicated client ID, and clarifies configuration comments. |
Review effort: Balanced
paulmedynski
approved these changes
Nov 19, 2026
cheenamalhotra
approved these changes
Nov 19, 2026
This was referenced Nov 20, 2026
benrr101
added a commit
that referenced
this pull request
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix Managed Instance CI authentication following the test-harness changes in #4390.
The harness now acquires Azure SQL tokens using
UserManagedIdentityClientId, rather than the connection string’sUID. This pipeline still disabled managed identity support and did not supply the separate client-ID setting, causing connections to fail with “An access token is required to connect to Azure SQL.”This change:
ManagedIdentitySupported.SqlMiUserManagedIdentityClientIdlibrary variable.The library configuration has already been updated: the dedicated variable contains the existing Managed Instance identity, and
SQL_MI_TCP_CONN_STRINGreferences it throughUID=$(SqlMiUserManagedIdentityClientId). This preserves compatibility with older harnesses without maintaining two independent client-ID values.No product code, public APIs, or test implementations changed.
Issues
Related to #4390 and #4482.
Addresses the authentication failures in [Managed Instance CI run 193421](https://dev.azure.com/SqlClientDrivers/ADO.Net/_build/results?buildId=193421&view=results).
Testing
28fca26e9.