<PackageReference Include="Microsoft.Identity.Client" Version="4.82.0" />

Microsoft.Identity.Client.ManagedIdentity.ManagedIdentityKeyProviderFactory

Creates (once) and caches the most suitable Managed Identity key provider for the current platform. Thread-safe, lock-free (uses CompareExchange).