<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.ManagedIdentityApplication

Class to be used for managed identity applications (on Azure resources like App Services, Virtual Machines, Azure Arc, Service Fabric and Cloud Shell).

Detects and returns the managed identity source available on the environment.

Detects the managed identity source available on the host and the strongest mTLS binding the host can produce. Useful for credential chains (such as DefaultAzureCredential) to decide whether managed identity is available and what binding strength to expect.