Microsoft.Identity.Client.ManagedIdentityApplication
public sealed class ManagedIdentityApplication : ApplicationBase, IManagedIdentityApplication, IApplicationBase
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.
public AcquireTokenForManagedIdentityParameterBuilder AcquireTokenForManagedIdentity(string resource)
public Task<ManagedIdentityCapabilities> GetManagedIdentityCapabilitiesAsync(CancellationToken cancellationToken)
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.