You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes live AAD Password authentication from test pipelines and uses managed-identity access tokens for Azure SQL tests.
Changes
Azure test legs consume bare connection strings from AZURE_SQL_CONN_STRING_WestUS2 and AZURE_SQL_CONN_STRING_EastUS.
Removed AAD Password connection-string config and live AAD Password tests.
Azure manual-test connections use tokens from DataTestUtility; connection-string-only paths use a test Managed Identity provider backed by the same API.
Explicit AccessToken and callback tests remove inherited authentication first.
Access tokens are cached until near expiry and pool tests reuse the same token.
Updated Azure extension tests and shared connection-string helpers.
CI migration
Supply bare Azure SQL connection strings through AZURE_SQL_CONN_STRING_WestUS2 and AZURE_SQL_CONN_STRING_EastUS, without authentication, user, or password fields. Legacy AAD_PASSWORD_CONN_STR* and AZURE_DB_*_CONN_STRING* variables are no longer consumed by these test legs.
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Removes the Entra ID “password auth” connection-string configuration from the test suite (and CI templates) following the pipeline change in #4288, replacing it with a single “bare” AzureSqlConnectionString that tests extend at runtime to exercise specific authentication modes.
Changes:
Renamed AADPasswordConnectionString → AzureSqlConnectionString across test config (Config.cs/config.default.jsonc), docs, and Azure DevOps pipeline templates; updated pipeline variables accordingly.
Added shared test helpers under tests/Common/ (CommonUtils, StringExtensions) to compose auth/credential keywords onto a base connection string.
Updated ManualTests + Azure extensions tests to remove ActiveDirectoryPassword coverage and to use managed identity / token-based flows with the new helpers.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
File
Description
TESTGUIDE.md
Updates documented test config property name/meaning for AAD/Azure SQL tests.
The reason will be displayed to describe this comment to others. Learn more.
I think the scope of these changes are a bit too broad. Don't mind cleanup where sensible, but I'm concerned about the intentions behind the connection string changes being more sweeping than we really want right now.
- Add IsUserManagedIdentitySupported condition to TestCustomProviderAuthentication and FedAuthTokenRefreshTest
- Update RemoveAuthAndCredsProperties doc to list all 7 removed keys
- Remove orphaned TcpConnectionString property from Azure.Test Config.cs
- Update Azure.Test AADConnectionTest.cs to use Config.TCPConnectionString
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 556e4cc8-f9fd-46f1-aafa-1459e8659f99
- Use AZURE_SQL_CONN_STRING_WestUS2 in Win11 Azure leg
- Add XML docs to TestRandomUtilities
- Fix MI invalid user id assertion
- Gate system-assigned MI tests behind SupportsSystemAssignedManagedIdentity
- Remove unused code and unrelated Strings.Designer.cs change
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 556e4cc8-f9fd-46f1-aafa-1459e8659f99
Updated the description for the TCPConnectionString to include additional configuration details for Azure SQL authentication tests.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Forward the callback's cancellation token into the managed-identity token acquisition path. The previous TokenCredential.GetTokenAsync(..., cancellationToken) call was cancellable, but GetSqlAuthenticationTokenAsync() eventually calls AADUtility.SendAsyncWithRetry(..., default) (DataCommon/AADUtility.cs:67), so cancellation or the 30-second connect timeout is only observed after the IMDS request finishes (the shared HttpClient can wait longer). The checks before and after the await do not cancel the in-flight request, which can make these pool tests substantially overrun their login budget during an identity-service stall.
RemoveKeysInConnStr no longer leaves a trailing ';', so build the
Integrated Security string with SqlConnectionStringBuilder. Skip
TestInitialCatalogStandardValues when the conn string has no User ID or
Integrated Security (MI token auth), since the converter requires them.
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 556e4cc8-f9fd-46f1-aafa-1459e8659f99
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🔵 Needs a closer look
The broad live-authentication and CI matrix migration requires human verification across managed identities, operating systems, frameworks, and pool implementations.
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
Area\TestsIssues that are targeted to tests or test projects
5 participants
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.
Removes live AAD Password authentication from test pipelines and uses managed-identity access tokens for Azure SQL tests.
Changes
AZURE_SQL_CONN_STRING_WestUS2andAZURE_SQL_CONN_STRING_EastUS.DataTestUtility; connection-string-only paths use a test Managed Identity provider backed by the same API.AccessTokenand callback tests remove inherited authentication first.CI migration
Supply bare Azure SQL connection strings through
AZURE_SQL_CONN_STRING_WestUS2andAZURE_SQL_CONN_STRING_EastUS, without authentication, user, or password fields. LegacyAAD_PASSWORD_CONN_STR*andAZURE_DB_*_CONN_STRING*variables are no longer consumed by these test legs.Validation