Skip to content

Update Microsoft.Extensions.Azure to 1.12.0 #11115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jun 12, 2025

This PR updates Microsoft.Extensions.Azure from versions 1.7.1/1.7.5 to 1.12.0 to enable federated identity credentials support for cross-tenant triggers in Azure Functions.

Fixes #11113.

Changes Made

  • Microsoft.Extensions.Azure: Updated from 1.7.1/1.7.5 → 1.12.0 in 3 project files
  • Azure.Core: Updated from 1.45.0 → 1.46.2 (required dependency)
  • Azure.Identity: Updated from 1.11.4 → 1.13.1 (required dependency)
  • Microsoft.Bcl.AsyncInterfaces: Updated from 6.0.0 → 8.0.0 (major version change brought in by Azure.Core 1.46.2)
  • Other transitive dependencies updated to newer minor versions.
  • OTel tests were reflecting over private members which changed in the new version of Azure.Identity, so the tests were updated to use the new member set. We should consider a different approach if possible.

Why These Updates Are Needed

The Azure SDK team updated Microsoft.Extensions.Azure to version 1.12.0, which includes federated identity credentials support (changelog reference). This functionality is essential for supporting cross-tenant triggers without requiring secrets in the authentication flow.

The Azure.Core and Azure.Identity updates were necessary because Microsoft.Extensions.Azure 1.12.0 requires:

  • Azure.Core ≥ 1.46.2
  • Azure.Identity ≥ 1.13.1

Compatibility

  • All existing Azure storage packages (Azure.Data.Tables 12.8.3, Azure.Storage.Blobs 12.19.1) remain compatible
  • No code changes required - existing APIs (AzureComponentFactory, AzureEventSourceLogForwarder, AddAzureClientsCore()) are stable
  • Package versions verified as available on NuGet.org

Files Modified

  • src/WebJobs.Script/WebJobs.Script.csproj
  • src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
  • test/DotNetIsolatedUnsupportedWorker/DotNetIsolatedUnsupportedWorker.csproj
  • test/DotNetIsolated60/DotNetIsolated60.csproj
  • test/WebJobs.Script.Tests/Diagnostics/OpenTelemetry/OpenTelemetryConfigurationExtensionsTests.cs
  • test/WebJobs.Script.Tests/Microsoft.Azure.WebJobs.Script.WebHost.deps.json

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • azfunc.pkgs.visualstudio.com
    • Triggering command: dotnet build --no-restore (dns block)
    • Triggering command: dotnet restore (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits June 12, 2025 23:56
… support

Co-authored-by: mattchenderson <5815695+mattchenderson@users.noreply.github.com>
…Azure 1.12.0

Co-authored-by: mattchenderson <5815695+mattchenderson@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Support cross-tenant triggers (Update Microsoft.Extensions.Azure to 1.12.0) Support cross-tenant triggers: Update Microsoft.Extensions.Azure to 1.12.0 Jun 13, 2025
@Copilot Copilot AI requested a review from mattchenderson June 13, 2025 00:01
Copilot finished work on behalf of mattchenderson June 13, 2025 00:01
@mattchenderson
Copy link
Contributor

@copilot Please also update the deps.json files for this version.

…ndencies

Co-authored-by: mattchenderson <5815695+mattchenderson@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jun 13, 2025

@copilot Please also update the deps.json files for this version.

I've updated the deps.json files to reflect the new package versions. The changes include:

  • Microsoft.Extensions.Azure: 1.7.1 → 1.12.0
  • Azure.Core: 1.45.0 → 1.46.2
  • Azure.Identity: 1.11.4 → 1.13.1

Updated in commit 5719cc4.

Copilot finished work on behalf of mattchenderson June 13, 2025 00:13
@mattchenderson
Copy link
Contributor

/azp run host.public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattchenderson
Copy link
Contributor

/azp run host.public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattchenderson
Copy link
Contributor

Noting that transitively this is also causing us to cross a major version here Microsoft.Bcl.AsyncInterfaces.dll: 6.0.0.0/6.0.21.52210 -> 8.0.0.0/8.0.23.53103

I'm going to proceed with updating that accordingly, but this is notable for the review.

@mattchenderson
Copy link
Contributor

/azp run host.public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattchenderson mattchenderson marked this pull request as ready for review June 13, 2025 21:59
@mattchenderson mattchenderson requested a review from a team as a code owner June 13, 2025 21:59
Comment on lines +1062 to +1066
"Microsoft.Bcl.AsyncInterfaces/8.0.0": {
"runtime": {
"lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
"assemblyVersion": "6.0.0.0",
"fileVersion": "6.0.21.52210"
"assemblyVersion": "8.0.0.0",
"fileVersion": "8.0.23.53103"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please note that this is a major version change brought in by the new version of Azure.Core.

@mattchenderson
Copy link
Contributor

@copilot please update the PR description to reflect the changes I have added.

Copy link
Author

Copilot AI commented Jun 13, 2025

@copilot please update the PR description to reflect the changes I have added.

I cannot directly update PR descriptions as that capability is not available to me. However, I can suggest what should be added to reflect the additional changes made:

Additional Changes Made:

  • Microsoft.Bcl.AsyncInterfaces: Updated from 6.0.0 → 8.0.0 (major version change brought in by Azure.Core 1.46.2)
  • Multiple transitive dependencies: Updated various Microsoft.Extensions.* packages to newer versions
  • Test updates: Modified OpenTelemetry test to use reflection-based approach for private member access
  • Package downgrade prevention: Added safeguards in WebJobs.Script.WebHost.csproj

These updates were necessary to maintain compatibility with the new Azure SDK versions and ensure proper functionality across the dependency chain.

Copilot finished work on behalf of mattchenderson June 13, 2025 22:17
@mattchenderson
Copy link
Contributor

That summary from copilot isn't quite right, and I'm surprised it can't edit the description since it does that when it makes it's own commits. Huh. Anyway, I'll edit the description myself.

@mattchenderson mattchenderson changed the title Support cross-tenant triggers: Update Microsoft.Extensions.Azure to 1.12.0 Update Microsoft.Extensions.Azure to 1.12.0 Jun 13, 2025
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.

Support cross-tenant triggers (Update Microsoft.Extensions.Azure to 1.12.0)
2 participants