Skip to content

Remove Azure.Identity dependency from data plane test projects (batch 3)#58388

Merged
m-nash merged 2 commits intomainfrom
feature/remove-identity-dependency-batch3
Apr 20, 2026
Merged

Remove Azure.Identity dependency from data plane test projects (batch 3)#58388
m-nash merged 2 commits intomainfrom
feature/remove-identity-dependency-batch3

Conversation

@m-nash
Copy link
Copy Markdown
Member

@m-nash m-nash commented Apr 20, 2026

Description

Continues the effort to remove explicit Azure.Identity dependencies from projects that no longer need them. Azure.Core 1.53+ now contains all identity types, so these projects can rely on the transitive Azure.Core reference.

This is batch 3 of a multi-PR cleanup. Previous batches:

Changes

Removed Azure.Identity PackageReference (or ProjectReference) from 10 data plane test projects:

Service Project
AI Extensions OpenAI sdk/ai/Azure.AI.Extensions.OpenAI/tests/Azure.AI.Extensions.OpenAI.Tests.csproj
AI Projects Agents sdk/ai/Azure.AI.Projects.Agents/tests/Azure.AI.Projects.Agents.Tests.csproj
Attestation sdk/attestation/Azure.Security.Attestation/tests/Azure.Security.Attestation.Tests.csproj
Code Transparency sdk/confidentialledger/Azure.Security.CodeTransparency/tests/Azure.Security.CodeTransparency.Tests.csproj
Confidential Ledger sdk/confidentialledger/Azure.Security.ConfidentialLedger/tests/Azure.Security.ConfidentialLedger.Tests.csproj
Face sdk/face/Azure.AI.Vision.Face/tests/Azure.AI.Vision.Face.Tests.csproj
Health Deidentification sdk/healthdataaiservices/Azure.Health.Deidentification/tests/Azure.Health.Deidentification.Tests.csproj
Radiology Insights sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Azure.Health.Insights.RadiologyInsights.Tests.csproj
Playwright sdk/loadtestservice/Azure.Developer.Playwright/tests/Azure.Developer.Playwright.Tests.csproj
OpenAI sdk/openai/Azure.AI.OpenAI/tests/Azure.AI.OpenAI.Tests.csproj

Total: 10 files changed, 14 deletions.

Notes

  • The two confidentialledger projects had a ProjectReference to Azure.Identity (with a TODO: Revert to PackageReference comment); both the reference and the comment were removed since the types are now in Azure.Core.
  • No production code is touched — these are all test project edits.

Validation

Built locally:

  • Azure.Security.Attestation.Tests
  • Azure.Security.ConfidentialLedger.Tests
  • Azure.AI.Vision.Face.Tests

Azure.AI.OpenAI has a pre-existing CS0115 build error on main (AzureFileClient.Protocol.cs(114,39)) unrelated to this change.

…tch 3)

Azure.Core 1.53+ now contains the identity types, so these projects no longer need an explicit Azure.Identity reference.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 continues the repo-wide cleanup to remove explicit Azure.Identity dependencies from data plane test projects, relying on Azure.Core (1.53+) to provide the identity types.

Changes:

  • Removed PackageReference Include="Azure.Identity" from multiple data plane test projects.
  • Removed ProjectReference to Azure.Identity.csproj (and the associated TODO comment) from the confidentialledger test projects.

Reviewed changes

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

Show a summary per file
File Description
sdk/ai/Azure.AI.Extensions.OpenAI/tests/Azure.AI.Extensions.OpenAI.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/ai/Azure.AI.Projects.Agents/tests/Azure.AI.Projects.Agents.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/attestation/Azure.Security.Attestation/tests/Azure.Security.Attestation.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/confidentialledger/Azure.Security.CodeTransparency/tests/Azure.Security.CodeTransparency.Tests.csproj Removes Azure.Identity project reference/TODO (but currently leaves malformed XML).
sdk/confidentialledger/Azure.Security.ConfidentialLedger/tests/Azure.Security.ConfidentialLedger.Tests.csproj Removes Azure.Identity project reference/TODO from test project dependencies.
sdk/face/Azure.AI.Vision.Face/tests/Azure.AI.Vision.Face.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/healthdataaiservices/Azure.Health.Deidentification/tests/Azure.Health.Deidentification.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tests/Azure.Health.Insights.RadiologyInsights.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/loadtestservice/Azure.Developer.Playwright/tests/Azure.Developer.Playwright.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
sdk/openai/Azure.AI.OpenAI/tests/Azure.AI.OpenAI.Tests.csproj Drops explicit Azure.Identity reference from test project dependencies.
Comments suppressed due to low confidence (1)

sdk/confidentialledger/Azure.Security.CodeTransparency/tests/Azure.Security.CodeTransparency.Tests.csproj:26

  • The project file appears to have malformed XML after removing the Azure.Identity reference: there are two consecutive <ItemGroup> start tags (one empty/unclosed). This will cause MSBuild to fail parsing the .csproj. Remove the extra <ItemGroup> and ensure the remaining groups are properly opened/closed.
  <ItemGroup>
  <ItemGroup>
    <Folder Include="SessionRecords\" />
    <EmbeddedResource Include="TestFiles\**" LinkBase="EmbeddedTestFiles" />
  </ItemGroup>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@m-nash m-nash merged commit 697ec71 into main Apr 20, 2026
25 checks passed
@m-nash m-nash deleted the feature/remove-identity-dependency-batch3 branch April 20, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants