Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented Dec 1, 2025

Azure.AI.Inference is no longer recommended, e.g. see the "Important" notice at https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-models/supported-languages. We haven't been making any changes to the wrapper, since there hasn't been any changes in the underlying library to react to, and we don't need to continue maintaining the source for the wrapper.

Microsoft Reviewers: Open in CodeFlow

Azure.AI.Inference is no longer recommended. We don't need to maintain the source for the wrapper.
@stephentoub stephentoub requested a review from a team as a code owner December 1, 2025 23:19
Copilot AI review requested due to automatic review settings December 1, 2025 23:19
@stephentoub stephentoub requested a review from a team as a code owner December 1, 2025 23:19
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Dec 1, 2025
@stephentoub stephentoub enabled auto-merge (squash) December 1, 2025 23:20
Copy link
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 removes the Microsoft.Extensions.AI.AzureAIInference library and all its related code, following Microsoft's recommendation that Azure.AI.Inference is no longer the recommended approach. The library has not been actively developed since there have been no changes in the underlying Azure.AI.Inference library to react to.

Key Changes:

  • Complete removal of the AzureAIInference integration library source code
  • Removal of all associated test files and test infrastructure
  • Removal of documentation (README.md, CHANGELOG.md)
  • Removal of the Azure.AI.Inference package dependency from the repository

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated no comments.

File Description
src/Libraries/Microsoft.Extensions.AI.AzureAIInference/* Removed entire source library including chat client, embedding generators, extensions, and supporting types
test/Libraries/Microsoft.Extensions.AI.AzureAIInference.Tests/* Removed all test files including unit tests, integration tests, and test helpers
eng/packages/General.props Removed Azure.AI.Inference package reference from version management

The PR is clean and comprehensive - it removes all traces of the AzureAIInference integration without leaving orphaned references. All deleted files are properly removed as complete files (entire content deleted), which is the appropriate approach for deprecating an entire library.

@jozkee
Copy link
Member

jozkee commented Dec 1, 2025

From a global search:

### Configuring Azure AI Inference tests
Run commands like the following. The settings will be saved in your user profile.
```
cd test/Libraries/Microsoft.Extensions.AI.Integration.Tests
dotnet user-secrets set AzureAIInference:Endpoint https://YOUR_DEPLOYMENT.azure.com/
dotnet user-secrets set AzureAIInference:Key abcdefghijkl
```
Optionally also run the following. The values shown here are the defaults if you don't specify otherwise:
```
dotnet user-secrets set AzureAIInference:ChatModel gpt-4o-mini
dotnet user-secrets set AzureAIInference:EmbeddingModel text-embedding-3-small
```

<LibraryProjects Remove="$(RepoRoot)\src\Libraries\Microsoft.Extensions.AI.AzureAIInference\Microsoft.Extensions.AI.AzureAIInference.csproj" />

@stephentoub stephentoub merged commit 1ab483a into dotnet:main Dec 2, 2025
13 checks passed
Copilot AI added a commit that referenced this pull request Dec 2, 2025
@stephentoub stephentoub deleted the removeinference branch December 2, 2025 16:08
stephentoub pushed a commit that referenced this pull request Dec 2, 2025
* Initial plan

* Remove AzureAIInference remnants after PR #7096

Co-authored-by: jozkee <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jozkee <[email protected]>
This was referenced Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants