Skip to content

Update to latest Azure.Core package with Azure.Identity types#4200

Open
ErikEJ wants to merge 6 commits intodotnet:mainfrom
ErikEJ:core-identity
Open

Update to latest Azure.Core package with Azure.Identity types#4200
ErikEJ wants to merge 6 commits intodotnet:mainfrom
ErikEJ:core-identity

Conversation

@ErikEJ
Copy link
Copy Markdown
Contributor

@ErikEJ ErikEJ commented Apr 16, 2026

Update to latest Azure.Core package with Azure.Identity types (which now contains the Azure.Identity types)

https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/MigrationGuide.md

This pull request updates shared dependency versions and removes an unused Azure dependency from the project configuration files. The main focus is on keeping dependencies up to date and cleaning up unnecessary references.

Dependency updates:

  • Updated Azure.Core to version 1.53.0 and Microsoft.Identity.Client to version 4.83.3 in Directory.Packages.props to ensure the latest features and security patches are used.

Dependency cleanup:

  • Removed the Azure.Identity package version specification from Directory.Packages.props since it is no longer needed.
  • Removed the Azure.Identity package reference from src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj to clean up unused dependencies.

Question: Should I update the app and readme in doc/apps/AzureAuthentication - it still refers to preview.4 etc?

@ErikEJ ErikEJ requested a review from a team as a code owner April 16, 2026 12:37
Copilot AI review requested due to automatic review settings April 16, 2026 12:37
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Apr 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates centrally-managed package versions (Azure.Core, Microsoft.Identity.Client) and attempts to remove the Azure.Identity dependency from the Extensions.Azure project configuration.

Changes:

  • Bump Azure.Core to 1.53.0 and Microsoft.Identity.Client to 4.83.1 in Directory.Packages.props.
  • Remove the Azure.Identity package reference from src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj.
  • Remove the centrally managed Azure.Identity package version from Directory.Packages.props.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj Removes Azure.Identity PackageReference (currently breaks compilation due to existing Azure.Identity usage).
Directory.Packages.props Updates shared dependency versions and removes central Azure.Identity version (currently breaks restore/build for projects that still reference Azure.Identity).
Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj:135

  • Removing the Azure.Identity PackageReference will break compilation: this project still uses Azure.Identity types (e.g., using Azure.Identity; and DefaultAzureCredential, ManagedIdentityCredential, etc. in ActiveDirectoryAuthenticationProvider.cs). Re-add the Azure.Identity reference (or remove/replace all Azure.Identity usages if the intent is to drop the dependency).
  <ItemGroup>
    <PackageReference Include="Azure.Core" />
    <PackageReference Include="Microsoft.Extensions.Caching.Memory" />
    <!-- Explicitly depend on the same version of Microsoft.Identity.Client as SqlClient. -->
    <PackageReference Include="Microsoft.Identity.Client" />
  </ItemGroup>

Comment thread Directory.Packages.props
@paulmedynski paulmedynski self-assigned this Apr 16, 2026
@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Apr 16, 2026
@paulmedynski paulmedynski added the Code Health 💊 Issues/PRs that are targeted to source code quality improvements. label Apr 16, 2026
@paulmedynski paulmedynski added this to the 7.1.0-preview1 milestone Apr 16, 2026
@paulmedynski
Copy link
Copy Markdown
Contributor

@ErikEJ - Sure, you can update the sample app. I think it should point to the latest published packages (7.0.0, 1.0.0).

It looks like Microsoft.Identity.Client has version 4.83.3 now. I've added it and 4.83.1 to our NuGet feed. I also added Azure.Core 1.53.0. I'll add any other new packages as they are identified (by build failures).

@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

@paulmedynski I will bump Microsoft.Identity.Client to version 4.83.3 and have a look at the sample app

Update sample app and readme
Copilot AI review requested due to automatic review settings April 16, 2026 12:56
@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

@paulmedynski All updated now, not 100% sure about the readme changes for the sample app

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Comment thread src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj
Comment thread doc/samples/Microsoft.Data.SqlClient.Samples.csproj Outdated
Comment thread Directory.Packages.props
Comment thread doc/apps/AzureAuthentication/README.md
Comment thread doc/apps/AzureAuthentication/README.md Outdated
@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

Look like Microsoft.Identity.Client.Extensions.Msal 4.38.3 is missing from your DevOps feed

paulmedynski
paulmedynski previously approved these changes Apr 16, 2026
Copy link
Copy Markdown
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Looks great!

Comment thread src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj
@paulmedynski paulmedynski added the Hotfix Candidate 🚑 Issues/PRs that are candidate for backporting to earlier supported versions. label Apr 16, 2026
paulmedynski
paulmedynski previously approved these changes Apr 16, 2026
@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

@paulmedynski How nice that PR builds run these days - thanks everyone for that!

@paulmedynski
Copy link
Copy Markdown
Contributor

@paulmedynski How nice that PR builds run these days - thanks everyone for that!

Unfortunately they still need an /azp run by a Maintainer. The CodeQL check does run automatically though, and it does a full compile that catches feed issues and other stuff.

Do not despair though, we're going to see if we can get the PR pipelines to not require any secrets, which would allow them to run automatically - stay tuned!

Copilot AI review requested due to automatic review settings April 16, 2026 13:41
@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

@paulmedynski Working on fixing the samples build

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient.Extensions/Azure/src/Azure.csproj:135

  • This project still has source files that using Azure.Identity; and use credential implementations like DefaultAzureCredential (see ActiveDirectoryAuthenticationProvider.cs). With Azure.Identity removed from the package references, the build will now depend on those types being present in Azure.Core, which may not be true. If the types are still provided by Azure.Identity, re-add the package reference (or update the code to the new package/type locations).
  <ItemGroup>
    <PackageReference Include="Azure.Core" />
    <PackageReference Include="Microsoft.Extensions.Caching.Memory" />
    <!-- Explicitly depend on the same version of Microsoft.Identity.Client as SqlClient. -->
    <PackageReference Include="Microsoft.Identity.Client" />
  </ItemGroup>

Comment thread doc/apps/AzureAuthentication/README.md
@paulmedynski
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@paulmedynski paulmedynski enabled auto-merge (squash) April 16, 2026 16:59
@ErikEJ
Copy link
Copy Markdown
Contributor Author

ErikEJ commented Apr 16, 2026

Looks this will be a build time breaking change for users that have an explicit reference to an older Azure.Identity version- but with an easy fix of course..

@paulmedynski paulmedynski removed the Hotfix Candidate 🚑 Issues/PRs that are candidate for backporting to earlier supported versions. label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Health 💊 Issues/PRs that are targeted to source code quality improvements.

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants