Skip to content

Migrate Microsoft.Azure.Management.DigitalTwins to Azure.ResourceManager.DigitalTwins #43

Closed

Description

@vidaritos

What would you like to be added:
Replace package Microsoft.Azure.Management.DigitalTwins with Azure.ResourceManager.DigitalTwins.
Migration guide: https://aka.ms/dotnet/t2/migration
This is a breaking change. The approved public api checked in ApiApprovalTests will need an update.
There is also a chance that System.Text.RegularExpressions 4.3.1 can be removed as a pinned transitive dependency due to this migration.

Why is this needed:
The original packages are deprecated as of 9/30/2023
https://www.nuget.org/packages/Microsoft.Azure.Management.DigitalTwins

Activity

  1. maikebing commented on Oct 3, 2026

    @maikebing

    Thanks for raising this. Implemented in 80fd11bb.

    • Replaced Microsoft.Azure.Management.DigitalTwins and the Fluent management SDK with Azure.ResourceManager.DigitalTwins 1.3.2.
    • Management authentication now uses Azure.Core.TokenCredential, including DefaultAzureCredential and ClientSecretCredential. The client ID/client secret/tenant ID registration remains available.
    • The new SDK does not expose the old provider operation-list API, so the liveness check now reads the configured Digital Twins Azure resource. Both AddAzureDigitalTwin overloads and the subscription health-check constructors require the full resourceId; the credential needs permission to read that resource, such as the Reader role. Resource IDs are validated to prevent probing the wrong resource type.
    • Removed the explicit System.Text.RegularExpressions pin. The restored dependency graphs for netstandard2.0, net8.0, and net10.0 contain none of the removed legacy SDK or regex packages.
    • Updated the public API approval snapshot, migration documentation, and offline HTTP tests for successful reads, 401/403/404 failures, cancellation, repeated probes, and multiple resource IDs.

    Validation: solution-wide and source/test dotnet format --verify-no-changes --severity warn checks passed; the source builds for all three target frameworks; 39 tests passed on .NET 8 (including API approval) and 38 on .NET 10.

    All 84 CI workflows and both GitHub CodeQL checks passed on the final master commit e9a14dd5. DigitalTwin CI · Code Scanning · Code Quality.

    The package README includes updated registration examples and migration notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions